Bug-1180: Added segment-routing errors. 44/8244/2
authorMilos Fabian <milfabia@cisco.com>
Mon, 23 Jun 2014 05:34:17 +0000 (07:34 +0200)
committerMilos Fabian <milfabia@cisco.com>
Tue, 24 Jun 2014 09:23:42 +0000 (11:23 +0200)
-"Non-identical ERO subobject" and "Bad label value"
ref.:https://tools.ietf.org/html/draft-sivabalan-pce-segment-routing-02#section-9.2

Change-Id: I64c6a79de1367e34d826834bfc7a0fe623413754
Signed-off-by: Milos Fabian <milfabia@cisco.com>
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/PCEPErrorMapping.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/PCEPErrors.java

index 39e164679c777c36e76b1656adaf687819af9563..949b4332f6664072c230931213bc45a821f2e7a3 100644 (file)
@@ -10,7 +10,6 @@ package org.opendaylight.protocol.pcep.spi;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.NoSuchElementException;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -131,6 +130,11 @@ public final class PCEPErrorMapping {
 
         this.fillIn(new PCEPErrorIdentifier((short) 10, (short) 1), PCEPErrors.P_FLAG_NOT_SET);
 
+        /* Segment Routing errors
+            https://tools.ietf.org/html/draft-sivabalan-pce-segment-routing-02#section-9.2 */
+        this.fillIn(new PCEPErrorIdentifier((short) 10, (short) 2), PCEPErrors.BAD_LABEL_VALUE);
+        this.fillIn(new PCEPErrorIdentifier((short) 10, (short) 5), PCEPErrors.NON_IDENTICAL_ERO_SUBOBJECTS);
+
         this.fillIn(new PCEPErrorIdentifier((short) 12, (short) 1), PCEPErrors.UNSUPPORTED_CT);
         this.fillIn(new PCEPErrorIdentifier((short) 12, (short) 2), PCEPErrors.INVALID_CT);
         this.fillIn(new PCEPErrorIdentifier((short) 12, (short) 3), PCEPErrors.CT_AND_SETUP_PRIORITY_DO_NOT_FORM_TE_CLASS);
index 72bc285585329ee8963f59207fc2e27d4d296208..2e6328c1702b9bbdbc0de1c7c3481fdaaa01e3ac 100644 (file)
@@ -255,5 +255,13 @@ public enum PCEPErrors {
     /**
      * LSP instantiation error: RSVP signaling error
      */
-    LSP_RSVP_ERROR
+    LSP_RSVP_ERROR,
+    /**
+     * Segment Routing error: Non-identical ERO subobjects
+     */
+    NON_IDENTICAL_ERO_SUBOBJECTS,
+    /**
+     * Segment Routing error: ERO subobject with invalid SID value;
+     * */
+    BAD_LABEL_VALUE,
 }