Mohammad Shahid | 4c30ea3 | 2017-08-09 18:02:10 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.evpnopenflow.manager; |
| 18 | |
| 19 | import org.onosproject.evpnopenflow.rsc.VpnPort; |
Ray Milkey | a95193c | 2017-08-10 15:35:36 -0700 | [diff] [blame] | 20 | import org.onosproject.evpnrouteservice.EvpnRoute; |
Mohammad Shahid | 4c30ea3 | 2017-08-09 18:02:10 +0530 | [diff] [blame] | 21 | import org.onosproject.net.Host; |
| 22 | |
| 23 | /** |
| 24 | * Service for interacting with the route and host events. |
| 25 | */ |
| 26 | public 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 | } |