blob: 352973c0a2bacc91c3bea396461b639d6d9d5d7f [file] [log] [blame]
Satish Kf6d87cb2015-11-30 19:59:22 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Satish Kf6d87cb2015-11-30 19:59:22 +05303 *
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 */
16package org.onosproject.iptopology.api.link;
17
18
19import org.onosproject.iptopology.api.TerminationPoint;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.provider.ProviderService;
22
23/**
24 * Means for injecting ip link information into the core.
25 */
26public 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}