blob: 560b96e9713650e5097b7bda0ac191f85d6c806d [file] [log] [blame]
Mohammad Shahid4c30ea32017-08-09 18:02:10 +05301/*
2 * Copyright 2017-present Open Networking Foundation
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.evpnopenflow.manager;
18
19import org.onosproject.evpnopenflow.rsc.VpnPort;
20import org.onosproject.incubator.net.routing.EvpnRoute;
21import org.onosproject.net.Host;
22
23/**
24 * Service for interacting with the route and host events.
25 */
26public interface EvpnService {
27 /**
28 * Transfer remote route to private route and set mpls flows out when
29 * BgpRoute update.
30 *
31 * @param route evpn route
32 */
33 void onBgpEvpnRouteUpdate(EvpnRoute route);
34
35 /**
36 * Transfer remote route to private route and delete mpls flows out when
37 * BgpRoute delete.
38 *
39 * @param route evpn route
40 */
41 void onBgpEvpnRouteDelete(EvpnRoute route);
42
43 /**
44 * Get VPN info from EVPN app store and create route, set flows when host
45 * detected.
46 *
47 * @param host host information
48 */
49 void onHostDetected(Host host);
50
51 /**
52 * Get VPN info from EVPN app store and delete route, set flows when
53 * host
54 * vanished.
55 *
56 * @param host host information
57 */
58 void onHostVanished(Host host);
59
60 /**
61 * Get VPN info from EVPN app store and create route, set flows when
62 * host
63 * detected.
64 *
65 * @param vpnPort vpnPort information
66 */
67 void onVpnPortSet(VpnPort vpnPort);
68
69 /**
70 * Get VPN info from EVPN app store and delete route, set flows when host
71 * vanished.
72 *
73 * @param vpnPort vpnPort information
74 */
75 void onVpnPortDelete(VpnPort vpnPort);
76}