Satish K | f6d87cb | 2015-11-30 19:59:22 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | ce2a03d | 2017-08-03 19:21:03 -0700 | [diff] [blame^] | 2 | * Copyright 2015-present Open Networking Foundation |
Satish K | f6d87cb | 2015-11-30 19:59:22 +0530 | [diff] [blame] | 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 | package org.onosproject.iptopology.api.link; |
| 17 | |
| 18 | |
| 19 | import org.onosproject.iptopology.api.TerminationPoint; |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.provider.ProviderService; |
| 22 | |
| 23 | /** |
| 24 | * Means for injecting ip link information into the core. |
| 25 | */ |
| 26 | public interface IpLinkProviderService extends ProviderService<IpLinkProvider> { |
| 27 | |
| 28 | /** |
| 29 | * Signals that an ip link is added or updated with IP topology information. |
| 30 | * |
| 31 | * @param linkDescription ip link information |
| 32 | */ |
| 33 | void addOrUpdateIpLink(IpLinkDescription linkDescription); |
| 34 | |
| 35 | /** |
| 36 | * Signals that an ip link has disappeared. |
| 37 | * |
| 38 | * @param linkDescription ip link information |
| 39 | */ |
| 40 | void removeIpLink(IpLinkDescription linkDescription); |
| 41 | |
| 42 | /** |
| 43 | * Signals that ip links associated with the specified |
| 44 | * termination point have vanished. |
| 45 | * |
| 46 | * @param terminationPoint termination point |
| 47 | */ |
| 48 | void removeIpLink(TerminationPoint terminationPoint); |
| 49 | |
| 50 | /** |
| 51 | * Signals that ip links associated with the specified |
| 52 | * device have vanished. |
| 53 | * |
| 54 | * @param deviceId device identifier |
| 55 | */ |
| 56 | void removeIpLink(DeviceId deviceId); |
| 57 | } |