blob: ab96e943f92c16ec7417572be2e93ae00db41ee0 [file] [log] [blame]
Kiran Ramachandra959353a2016-02-16 22:12:07 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Kiran Ramachandra959353a2016-02-16 22:12:07 +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.ospf.protocol.lsa.tlvtypes;
17
18/**
19 * Representation of an OSPF Opaque top level tlv types.
20 */
21public enum OpaqueTopLevelTlvTypes {
22
23 ROUTER(1),
24 LINK(2);
25
26 private int value;
27
28 /**
29 * Creates an instance of Opaque top level tlv types.
30 *
31 * @param value
32 */
33 OpaqueTopLevelTlvTypes(int value) {
34 this.value = value;
35 }
36
37 /**
38 * Gets the tlv type value.
39 *
40 * @return tlv type value
41 */
42 public int value() {
43 return value;
44 }
45
46}