blob: 40158d8a3a3040d22fd8670fadf7d22137f2a21d [file] [log] [blame]
sunish vk30637eb2016-02-16 15:19:32 +05301/*
2 * Copyright 2016 Open Networking Laboratory
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 */
16package org.onosproject.ospf.controller;
17
18import org.onlab.packet.Ip4Address;
19import org.onlab.packet.Ip6Address;
20
21import java.util.List;
22
23/**
24 * Represents Device Traffic Engineering parameters.
25 */
26public interface OspfDeviceTed {
27
28 /**
29 * Obtain list of IPv4 router ids.
30 *
31 * @return IPv4 router ids
32 */
33 public List<Ip4Address> ipv4RouterIds();
34
35 /**
36 * Sets list of IPv4 router ids.
37 *
38 * @param routerIds list of IPv4 router ids
39 */
40 public void setIpv4RouterIds(List<Ip4Address> routerIds);
41
42 /**
43 * Obtain list of IPv6 router id.
44 *
45 * @return IPv4 router ids
46 */
47 public List<Ip6Address> ipv6RouterIds();
48
49 /**
50 * Sets list of IPv4 router ids.
51 *
52 * @param routerIds list of IPv4 router ids
53 */
54 public void setIpv6RouterIds(List<Ip6Address> routerIds);
55
56 /**
57 * Obtain the list of topology ids.
58 *
59 * @return list of topology ids
60 */
61 public List<Short> topologyIds();
62
63 /**
64 * Sets the list of topology ids.
65 *
66 * @param topologyIds the list of topology ids
67 */
68 public void setTopologyIds(List<Short> topologyIds);
69
70 /**
71 * Obtains position of device in the network.
72 *
73 * @return position of device in the network
74 */
75 public Boolean asbr();
76
77 /**
78 * Sets position of device in the network.
79 *
80 * @param asbr position of device in the network
81 */
82 public void setAsbr(Boolean asbr);
83
84 /**
85 * Obtains position of device in the network.
86 *
87 * @return position of device in the network
88 */
89 public Boolean abr();
90
91 /**
92 * Sets position of device in the network.
93 *
94 * @param abr position of device in the network
95 */
96 public void setAbr(Boolean abr);
97}