Support proper route redistribution 00/14200/4
authorRobert Varga <rovarga@cisco.com>
Fri, 16 Jan 2015 18:12:27 +0000 (19:12 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 26 Feb 2015 10:36:36 +0000 (10:36 +0000)
For proper route redistribution, we need to properly process received
attributes even if we do not recognize them. The parser needs to output
them as received and on egress we need to munge the value with a new
header, which will force the partial bit to be set to true.

Change-Id: Icc5d3b6393dae7ba6d83df0f8beb596cccc9559a
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/parser-api/src/main/yang/bgp-message.yang

index 9efac13fd9b78be66061f6581d1d8b5d169d6cc3..466648773c7411a76f30c5a6bc23d8a0d7a240c1 100644 (file)
@@ -140,6 +140,27 @@ module bgp-message {
                 }
             }
         }
+        list unrecognized-attributes {
+            key type;
+            leaf partial {
+                type boolean;
+                mandatory true;
+            }
+            leaf transitive {
+                type boolean;
+                mandatory true;
+            }
+            leaf type {
+                type uint8;
+                mandatory true;
+            }
+            leaf value {
+                type binary {
+                    length 0..65535;
+                }
+                mandatory true;
+            }
+        }
     }
 
     notification update {