blob: abf0b82ce2945e3747eb3cd094d12410c8c8ba6f [file] [log] [blame]
mohamed rahil8ea09d42016-04-19 20:47:21 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
mohamed rahil8ea09d42016-04-19 20:47:21 +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.isis.controller.topology;
17
18/**
19 * Abstraction of an ISIS link listener.
20 */
21public interface IsisLinkListener {
22
23 /**
24 * Notifies that we got a link from network.
25 *
sunish vk7bdf4d42016-06-24 12:29:43 +053026 * @param isisLink link instance
mohamed rahil8ea09d42016-04-19 20:47:21 +053027 */
sunish vk7bdf4d42016-06-24 12:29:43 +053028 void addLink(IsisLink isisLink);
mohamed rahil8ea09d42016-04-19 20:47:21 +053029
30 /**
31 * Notifies that a link got removed from network.
32 *
sunish vk7bdf4d42016-06-24 12:29:43 +053033 * @param isisLink link instance
mohamed rahil8ea09d42016-04-19 20:47:21 +053034 */
sunish vk7bdf4d42016-06-24 12:29:43 +053035 void deleteLink(IsisLink isisLink);
mohamed rahil8ea09d42016-04-19 20:47:21 +053036}