blob: 1bf6ce88a496b63cb820c6bb1a74f35fbb056bcb [file] [log] [blame]
Sho SHIMIZUe81e4db2015-09-03 09:44:38 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Sho SHIMIZUe81e4db2015-09-03 09:44:38 -07003 *
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.types;
18
19/**
20 * Provide the PCEP Error Info Details.
21 */
22public final class PcepErrorDetailInfo {
23
24 private PcepErrorDetailInfo() {
25 }
26
27 // Error Types
28 /**
29 Error- Meaning Reference:RFC 5440
30 Type
31 1 PCEP session establishment failure
32 Error-value=1: reception of an invalid Open message or a non Open message.
33 Error-value=2: no Open message received before the expiration of the OpenWait timer
34 Error-value=3: unacceptable and non-negotiable session characteristics
35 Error-value=4: unacceptable but negotiable session characteristics
36 Error-value=5: reception of a second Open message with still unacceptable session characteristics
37 Error-value=6: reception of a PCErr message proposing unacceptable session characteristics
38 Error-value=7: No Keepalive or PCErr message received before the expiration of the KeepWait timer
39 Error-value=8: PCEP version not supported
40 2 Capability not supported
41 3 Unknown Object
42 Error-value=1: Unrecognized object class
43 Error-value=2: Unrecognized object Type
44 4 Not supported object
45 Error-value=1: Not supported object class
46 Error-value=2: Not supported object Type
47 5 Policy violation
48 Error-value=1: C bit of the METRIC object set (request rejected)
49 Error-value=2: O bit of the RP object cleared (request rejected)
50 6 Mandatory Object missing
51 Error-value=1: RP object missing
52 Error-value=2: RRO missing for a re-optimization request (R bit of the RP object set)
53 Error-value=3: END-POINTS object missing
54 7 Synchronized path computation request missing
55 8 Unknown request reference
56 9 Attempt to establish a second PCEP session
57 10 Reception of an invalid object
58 Error-value=1: reception of an object with P flag not set although the P flag must be
59 set according to this specification.
Priyanka Bd2b28882016-04-04 16:57:04 +053060
61 Reference draft-ietf-pce-stateful-pce-11, section : 8.4
62 19 Invalid Operation
63 Error-value=1: Attempted LSP Update Request for a non-
64 delegated LSP. The PCEP-ERROR Object
65 is followed by the LSP Object that
66 identifies the LSP.
67 Error-value=2: Attempted LSP Update Request if the
68 stateful PCE capability was not
69 advertised.
70 Error-value=3: Attempted LSP Update Request for an LSP
71 identified by an unknown PLSP-ID.
72 Error-value=4: A PCE indicates to a PCC that it has
73 exceeded the resource limit allocated
74 for its state, and thus it cannot
75 accept and process its LSP State Report
76 message.
77 Error-value=5: Attempted LSP State Report if active
78 stateful PCE capability was not
79 advertised.
Sho SHIMIZUe81e4db2015-09-03 09:44:38 -070080 */
81 public static final byte ERROR_TYPE_1 = 1;
82 public static final byte ERROR_TYPE_2 = 2;
83 public static final byte ERROR_TYPE_3 = 3;
84 public static final byte ERROR_TYPE_4 = 4;
85 public static final byte ERROR_TYPE_5 = 5;
86 public static final byte ERROR_TYPE_6 = 6;
87 public static final byte ERROR_TYPE_7 = 7;
88 public static final byte ERROR_TYPE_8 = 8;
89 public static final byte ERROR_TYPE_9 = 9;
90 public static final byte ERROR_TYPE_10 = 10;
Priyanka Bd2b28882016-04-04 16:57:04 +053091 public static final byte ERROR_TYPE_19 = 19;
Sho SHIMIZUe81e4db2015-09-03 09:44:38 -070092
93 // Error Values
94 public static final byte ERROR_VALUE_1 = 1;
95 public static final byte ERROR_VALUE_2 = 2;
96 public static final byte ERROR_VALUE_3 = 3;
97 public static final byte ERROR_VALUE_4 = 4;
98 public static final byte ERROR_VALUE_5 = 5;
99 public static final byte ERROR_VALUE_6 = 6;
100 public static final byte ERROR_VALUE_7 = 7;
101 public static final byte ERROR_VALUE_8 = 8;
102 public static final byte ERROR_VALUE_9 = 9;
103 public static final byte ERROR_VALUE_10 = 10;
104}