blob: a6ed87a5c315e11d635b8eb43daa9f5fbd4bca16 [file] [log] [blame]
Yoonseon Hancbfac9a2016-10-20 13:14:06 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.incubator.net.virtual.provider;
18
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070019import org.onosproject.net.DeviceId;
20import org.onosproject.net.group.Group;
21import org.onosproject.net.group.GroupOperation;
22
23import java.util.Collection;
24
25/**
26 * Service through which Group providers can inject information into
27 * the virtual network core.
28 */
29public interface VirtualGroupProviderService
30 extends VirtualProviderService<VirtualGroupProvider> {
31 /**
32 * Notifies core if any failure from data plane during group operations.
33 *
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070034 * @param deviceId the device ID
35 * @param operation offended group operation
36 */
yoonseondc3210d2017-01-25 16:03:10 -080037 void groupOperationFailed(DeviceId deviceId, GroupOperation operation);
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070038
39 /**
40 * Pushes the collection of group detected in the data plane along
41 * with statistics.
42 *
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070043 * @param deviceId device identifier
44 * @param groupEntries collection of group entries as seen in data plane
45 */
yoonseondc3210d2017-01-25 16:03:10 -080046 void pushGroupMetrics(DeviceId deviceId, Collection<Group> groupEntries);
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070047
48 /**
49 * Notifies store of group failovers.
50 *
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070051 * @param failoverGroups failover groups in which a failover has occurred
52 */
yoonseondc3210d2017-01-25 16:03:10 -080053 void notifyOfFailovers(Collection<Group> failoverGroups);
Yoonseon Hancbfac9a2016-10-20 13:14:06 -070054}