Add Errata 4493 error codes 64/80764/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Mar 2019 10:35:10 +0000 (11:35 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 11 Mar 2019 13:02:59 +0000 (13:02 +0000)
When we send out a malformed header/update, we may end up receiving
a 1/0 or 3/0 error, which we'll fail to handle on DEBUG level because
we lack the corresponding definition.

Fix this by adding the appropriate references.

JIRA: BGPCEP-864
Change-Id: Ic7437bf34a5e3e6de84f98fc4fd57f8bd1b64bbf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/parser-api/src/main/java/org/opendaylight/protocol/bgp/parser/BGPError.java

index 1e900dfdae2ad8f7b0d9b2ca58fe57c24cf6aec3..d306262d4be90638fb37a3ba4b805fdb17af8d35 100644 (file)
@@ -21,6 +21,10 @@ import java.util.Map;
  */
 public enum BGPError {
     /**
+     * Unspecific header error. 1/0, <a href="https://www.rfc-editor.org/errata_search.php?eid=4493">Errata 4493</a>.
+     */
+    UNSPECIFIC_HEADER_ERROR((short) 1, (short) 0),
+        /**
      * Connection Not Synchronized. 1/1
      */
     CONNECTION_NOT_SYNC((short) 1, (short) 1),
@@ -33,7 +37,7 @@ public enum BGPError {
      */
     BAD_MSG_TYPE((short) 1, (short) 3),
     /**
-     * Unspecific Open Message error.
+     * Unspecific Open Message error, <a href="https://www.rfc-editor.org/errata_search.php?eid=4493">Errata 4493</a>.
      */
     UNSPECIFIC_OPEN_ERROR((short) 2, (short) 0),
     /**
@@ -56,6 +60,10 @@ public enum BGPError {
      * Unacceptable Hold Time. 2/6
      */
     HOLD_TIME_NOT_ACC((short) 2, (short) 6),
+    /**
+     * Unspecific UPDATE error. 3/0, <a href="https://www.rfc-editor.org/errata_search.php?eid=4493">Errata 4493</a>.
+     */
+    UNSPECIFIC_UPDATE_ERROR((short) 3, (short) 0),
     /**
      * Malformed Attribute List. 3/1
      */