blob: 83a62103e8e668f0b0b4dc595a477e2e1adc56dc [file] [log] [blame]
Sho SHIMIZUe81e4db2015-09-03 09:44:38 -07001/*
2 * Copyright 2015 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.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.
60 */
61 public static final byte ERROR_TYPE_1 = 1;
62 public static final byte ERROR_TYPE_2 = 2;
63 public static final byte ERROR_TYPE_3 = 3;
64 public static final byte ERROR_TYPE_4 = 4;
65 public static final byte ERROR_TYPE_5 = 5;
66 public static final byte ERROR_TYPE_6 = 6;
67 public static final byte ERROR_TYPE_7 = 7;
68 public static final byte ERROR_TYPE_8 = 8;
69 public static final byte ERROR_TYPE_9 = 9;
70 public static final byte ERROR_TYPE_10 = 10;
71
72 // Error Values
73 public static final byte ERROR_VALUE_1 = 1;
74 public static final byte ERROR_VALUE_2 = 2;
75 public static final byte ERROR_VALUE_3 = 3;
76 public static final byte ERROR_VALUE_4 = 4;
77 public static final byte ERROR_VALUE_5 = 5;
78 public static final byte ERROR_VALUE_6 = 6;
79 public static final byte ERROR_VALUE_7 = 7;
80 public static final byte ERROR_VALUE_8 = 8;
81 public static final byte ERROR_VALUE_9 = 9;
82 public static final byte ERROR_VALUE_10 = 10;
83}