blob: 78c3c8a26ec9dae46b65aa08953524850e153a58 [file] [log] [blame]
Kiran Ramachandrac92a1222016-03-30 13:05:31 +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 */
16
17package org.onosproject.isis.controller;
18
19/**
20 * Representation of ISIS PDU types.
21 */
22public enum IsisPduType {
23
24 /**
25 * Represents Level-1 LAN hello packet.
26 */
27 L1HELLOPDU(15),
28 /**
29 * Represents Level-2 LAN hello packet.
30 */
31 L2HELLOPDU(16),
32 /**
33 * Represents point-to-point hello packet.
34 */
35 P2PHELLOPDU(17),
36 /**
37 * Represents Level-1 link state packet.
38 */
39 L1LSPDU(18),
40 /**
41 * Represents Level-2 link state packet.
42 */
43 L2LSPDU(20),
44 /**
45 * Represents Level-1 complete sequence number packet.
46 */
47 L1CSNP(24),
48 /**
49 * Represents Level-2 complete sequence number packet.
50 */
51 L2CSNP(25),
52 /**
53 * Represents Level-1 partial sequence number packet.
54 */
55 L1PSNP(26),
56 /**
57 * Represents Level-2 partial sequence number packet.
58 */
59 L2PSNP(27);
60
61 private int value;
62
63
64 /**
65 * Creates an instance of ISIS PDU type.
66 *
67 * @param value represents ISIS PDU type
68 */
69 private IsisPduType(int value) {
70 this.value = value;
71 }
72
73 /**
74 * Gets the value representing PDU type.
75 *
76 * @return value represents PDU type
77 */
78 public int value() {
79 return value;
80 }
81}