mohamedrahil | 00f6f26 | 2016-11-24 20:20:41 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present 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 | package org.onosproject.pcep.controller; |
| 17 | |
| 18 | /** |
| 19 | * PCEP error message type information. |
| 20 | */ |
| 21 | public enum PcepErrorType { |
| 22 | SESSIONESTABLISHMENTFAILURE(1), |
| 23 | CAPABALITYNOTSUPPORTED(2), |
| 24 | UNKNOWNOBJECT(3), |
| 25 | NOTSUPPORTEDOBJECT(4), |
| 26 | POLICYVIOLATION(5), |
| 27 | MANDATORYOBJECTMISSING(6), |
| 28 | SYNCHRONIZEDPATHCOMPUTATIONREQUESTMISSING(7), |
| 29 | UNKNOWNREQUESTREFERENCE(8), |
| 30 | ESTABLISHINGSECONDPCEPSESSION(9), |
| 31 | RECEPTIONOFINVALIDOBJECT(10), |
| 32 | INVALIDOPERATION(19), |
| 33 | VIRTUALNETWORKTLVMISSING(255); |
| 34 | |
Ray Milkey | e4afdb5 | 2017-04-05 09:42:04 -0700 | [diff] [blame] | 35 | int value; |
mohamedrahil | 00f6f26 | 2016-11-24 20:20:41 +0530 | [diff] [blame] | 36 | |
| 37 | /** |
| 38 | * Creates an instance of Pcep Error Type. |
| 39 | * |
| 40 | * @param value represents Error type |
| 41 | */ |
| 42 | PcepErrorType(int value) { |
| 43 | this.value = value; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Gets the value representing Pcep Error Type. |
| 48 | * |
| 49 | * @return value represents Error Type |
| 50 | */ |
| 51 | public int value() { |
| 52 | return value; |
| 53 | } |
Ray Milkey | e4afdb5 | 2017-04-05 09:42:04 -0700 | [diff] [blame] | 54 | } |