blob: 05fd712bc28d382659f535f1810f3fd70a7a5437 [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Phaneendra Manda1c0061d2015-08-06 12:29:38 +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 */
16
17package org.onosproject.pcepio.protocol;
18
19/**
20 * Enum to Provide the Different types of PCEP messages.
21 */
22public enum PcepType {
23
24 NONE(0), OPEN(1), KEEP_ALIVE(2), PATH_COMPUTATION_REQUEST(3), PATH_COMPUTATION_REPLY(4),
Mahesh Poojary Sf1bbd362016-02-25 18:19:59 +053025 NOTIFICATION(5), ERROR(6), CLOSE(7), REPORT(10), UPDATE(11), INITIATE(12),
26 LS_REPORT(224), LABEL_RANGE_RESERV(225), LABEL_UPDATE(226), MAX(227), END(228);
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053027
28 int iValue;
29
30 /**
31 * Assign iValue with the value iVal as the types of PCEP message.
32 *
33 * @param iVal type of pcep message
34 */
35 PcepType(int iVal) {
36
37 iValue = iVal;
38 }
39
40 /**
41 * Returns iValue as type of PCEP message.
42 *
43 * @return iValue type of pcep message
44 */
45 public byte getType() {
46
47 return (byte) iValue;
48 }
49}