Bug 2208 - pcc-mock: enhancemnets
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / PCEPErrors.java
index 5a4d8be80495b131bb5e2941fbe3be7e530e25d2..fa2a20f6ef7f58a9e4de99362edd0f1a538b85b3 100644 (file)
@@ -260,14 +260,34 @@ public enum PCEPErrors {
      * LSP instantiation error: RSVP signaling error
      */
     LSP_RSVP_ERROR(24, 3),
+    /**
+     * Segment Routing error: ERO subobject with invalid SID value
+     */
+    BAD_LABEL_VALUE(10, 2),
+    /**
+     * Segment Routing error: Unsupported number of Segment ERO subobjects
+     */
+    UNSUPPORTED_NUMBER_OF_SR_ERO_SUBOBJECTS(10, 3),
+    /**
+     * Segment Routing error: Bad label format
+     */
+    BAD_LABEL_FORMAT(10, 4),
     /**
      * Segment Routing error: Non-identical ERO subobjects
      */
     NON_IDENTICAL_ERO_SUBOBJECTS(10, 5),
     /**
-     * Segment Routing error: ERO subobject with invalid SID value;
+     * Segment Routing error: Both SID and NAI are absent in ERO subobject.
      */
-    BAD_LABEL_VALUE(10, 2),
+    SID_AND_NAI_ABSENT_IN_ERO(10, 6),
+    /**
+     * Segment Routing error: Both SID and NAI are absent in RRO subobject.
+     */
+    SID_AND_NAI_ABSENT_IN_RRO(10, 7),
+    /**
+     * Segment Routing error: Non-identical RRO subobjects.
+     */
+    SID_NON_IDENTICAL_RRO_SUBOBJECTS(10, 8),
     /**
      * Invalid traffic engineering path setup type: Unsupported path setup type
      */
@@ -279,7 +299,36 @@ public enum PCEPErrors {
     /**
      * MONITORING object missing
      */
-    MONITORING_OBJECT_MISSING(6, 4);
+    MONITORING_OBJECT_MISSING(6, 4),
+    /**
+     * Reception of StartTLS after any PCEP exchange
+     * TODO: error code to be assigned by IANA
+     */
+    STARTTLS_RCVD_INCORRECTLY(30, 1),
+    /**
+     * Reception of non-StartTLS or non-PCErr message
+     * TODO: error code to be assigned by IANA
+     */
+    NON_STARTTLS_MSG_RCVD(30, 2),
+    /**
+     * Failure, connection without TLS not possible
+     * TODO: error code to be assigned by IANA
+     */
+    NOT_POSSIBLE_WITHOUT_TLS(30, 3),
+    /**
+     * Failure, connection without TLS possible
+     * TODO: error code to be assigned by IANA
+     */
+    POSSIBLE_WITHOUT_TLS(30, 4),
+    /**
+     * No StartTLS message before StartTLSWait timer expired
+     * TODO: error code to be assigned by IANA
+     */
+    STARTTLS_TIMER_EXP(30, 5),
+    /**
+     * LSP is not PCE-initiated
+     */
+    LSP_NOT_PCE_INITIATED(19, 9);
 
     private PCEPErrorIdentifier errorId;
     private static final Map<PCEPErrorIdentifier, PCEPErrors> VALUE_MAP;