blob: 7823ae4bbb34ca753985d0351adeb9bf17e422b4 [file] [log] [blame]
Kiran Ramachandrac92a1222016-03-30 13:05:31 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Kiran Ramachandrac92a1222016-03-30 13:05:31 +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 */
mohamed rahil8ea09d42016-04-19 20:47:21 +053016package org.onosproject.isis.controller.topology;
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053017
18import org.onlab.packet.Ip4Address;
19
20/**
21 * Abstraction of an ISIS Router.
22 */
23public interface IsisRouter {
24
25 /**
sunish vk7bdf4d42016-06-24 12:29:43 +053026 * Returns system ID for the router.
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053027 *
sunish vk7bdf4d42016-06-24 12:29:43 +053028 * @return system ID of the router
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053029 */
sunish vk7bdf4d42016-06-24 12:29:43 +053030 String systemId();
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053031
32 /**
mohamed rahil8ea09d42016-04-19 20:47:21 +053033 * Returns IP address of the interface.
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053034 *
35 * @return IP address of the interface
36 */
37 Ip4Address interfaceId();
38
39 /**
sunish vk7bdf4d42016-06-24 12:29:43 +053040 * Gets IP address of the interface.
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053041 *
sunish vk7bdf4d42016-06-24 12:29:43 +053042 * @param interfaceId IP address of the interface
Kiran Ramachandrac92a1222016-03-30 13:05:31 +053043 */
sunish vk7bdf4d42016-06-24 12:29:43 +053044 void setInterfaceId(Ip4Address interfaceId);
45
46 /**
47 * Sets system ID of the Router.
48 *
49 * @param systemId system ID of the router
50 */
51 void setSystemId(String systemId);
52
53 /**
54 * Gets neighbours ID.
55 *
56 * @return neighbour ID
57 */
58 Ip4Address neighborRouterId();
59
60 /**
61 * Sets the neighbour Id.
62 *
63 * @param neighbourId neighbour Id
64 */
65 void setNeighborRouterId(Ip4Address neighbourId);
66
67 /**
68 * Gets if the router id DIS or not.
69 *
70 * @return true if the router is DIS else false
71 */
72 boolean isDis();
73
74 /**
75 * Sets if the router id DIS or not.
76 *
77 * @param dis true if the router is DIS else false
78 */
79 void setDis(boolean dis);
mohamed rahil8ea09d42016-04-19 20:47:21 +053080}