blob: 95351fab6b8c5064bb17bfbda92054f059c57bdb [file] [log] [blame]
Kiran Ramachandra959353a2016-02-16 22:12:07 +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.protocol.lsa.linksubtype;
17
18/**
19 * Representation of TE link sub types.
20 */
21public enum LinkSubTypes {
22 LINK_TYPE(1),
23 LINK_ID(2),
24 LOCAL_INTERFACE_IP_ADDRESS(3),
25 REMOTE_INTERFACE_IP_ADDRESS(4),
26 TRAFFIC_ENGINEERING_METRIC(5),
27 MAXIMUM_BANDWIDTH(6),
28 MAXIMUM_RESERVABLE_BANDWIDTH(7),
29 UNRESERVED_BANDWIDTH(8),
30 ADMINISTRATIVE_GROUP(9);
31
32 private int value;
33
34 /**
35 * Creates an instance of link sub types.
36 *
37 * @param value link sub type value
38 */
39 LinkSubTypes(int value) {
40 this.value = value;
41 }
42
43 /**
44 * Gets the link sub type value.
45 *
46 * @return link sub type value
47 */
48 public int value() {
49 return value;
50 }
51}