mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +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.isis.controller.topology; |
| 17 | |
| 18 | import org.onlab.packet.Ip4Address; |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 19 | import org.onlab.util.Bandwidth; |
| 20 | |
| 21 | import java.util.List; |
| 22 | |
| 23 | /** |
| 24 | * Representation of ISIS link traffic engineering parameters. |
| 25 | */ |
| 26 | public interface IsisLinkTed { |
| 27 | |
| 28 | /** |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 29 | * Gets the administrative group. |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 30 | * |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 31 | * @return administrative group |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 32 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 33 | int administrativeGroup(); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 34 | |
| 35 | /** |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 36 | * Sets the administrative group. |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 37 | * |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 38 | * @param administrativeGroup administrative group |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 39 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 40 | void setAdministrativeGroup(int administrativeGroup); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 41 | |
| 42 | /** |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 43 | * Provides the IPv4 interface address. |
| 44 | * |
| 45 | * @return IPv4 interface address |
| 46 | */ |
| 47 | Ip4Address ipv4InterfaceAddress(); |
| 48 | |
| 49 | /** |
| 50 | * Sets the IPv4 interface address. |
| 51 | * |
| 52 | * @param interfaceAddress IPv4 interface address |
| 53 | */ |
| 54 | void setIpv4InterfaceAddress(Ip4Address interfaceAddress); |
| 55 | |
| 56 | /** |
| 57 | * Provides the IPv4 neighbor address. |
| 58 | * |
| 59 | * @return IPv4 neighbor address |
| 60 | */ |
| 61 | Ip4Address ipv4NeighborAddress(); |
| 62 | |
| 63 | /** |
| 64 | * Sets the IPv4 neighbor address. |
| 65 | * |
| 66 | * @param neighborAddress IPv4 neighbor address |
| 67 | */ |
| 68 | void setIpv4NeighborAddress(Ip4Address neighborAddress); |
| 69 | |
| 70 | /** |
| 71 | * Gets the maximum link bandwidth. |
| 72 | * |
| 73 | * @return maximum link bandwidth |
| 74 | */ |
| 75 | Bandwidth maximumLinkBandwidth(); |
| 76 | |
| 77 | /** |
| 78 | * Sets the maximum link bandwidth. |
| 79 | * |
| 80 | * @param bandwidth maximum link bandwidth |
| 81 | */ |
| 82 | void setMaximumLinkBandwidth(Bandwidth bandwidth); |
| 83 | |
| 84 | /** |
| 85 | * Provides max bandwidth that can be reservable on the link. |
| 86 | * |
| 87 | * @return max bandwidth reservable |
| 88 | */ |
| 89 | Bandwidth maximumReservableLinkBandwidth(); |
| 90 | |
| 91 | /** |
| 92 | * Sets max bandwidth that can be reservable on the link. |
| 93 | * |
| 94 | * @param bandwidth max bandwidth that can be reservable on the link |
| 95 | */ |
| 96 | void setMaximumReservableLinkBandwidth(Bandwidth bandwidth); |
| 97 | |
| 98 | /** |
| 99 | * Amount of bandwidth unreserved on the link. |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 100 | * |
| 101 | * @return unreserved bandwidth |
| 102 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 103 | List<Bandwidth> unreservedBandwidth(); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 104 | |
| 105 | /** |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 106 | * Sets the bandwidth unreserved on the link. |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 107 | * |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 108 | * @param bandwidth bandwidth unreserved |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 109 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 110 | void setUnreservedBandwidth(List<Bandwidth> bandwidth); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 111 | |
| 112 | /** |
| 113 | * Provides Traffic Engineering metric for the link. |
| 114 | * |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 115 | * @return Traffic Engineering Default metric |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 116 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 117 | long teDefaultMetric(); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 118 | |
| 119 | /** |
| 120 | * Sets Traffic Engineering metric for the link. |
| 121 | * |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 122 | * @param teMetric Traffic Engineering Default metric for the link |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 123 | */ |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 124 | void setTeDefaultMetric(long teMetric); |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 125 | } |