BUG-185 : implemented Best Path Selection Algorithm.
[bgpcep.git] / bgp / rib-impl-config / src / main / yang / bgp-rib-impl.yang
index 34e4d622afcdfd983de30527da5cbc46c5e63f62..849e4ad64b7488a079ddbcee15d25793cc4e86d2 100644 (file)
@@ -76,7 +76,7 @@ module bgp-rib-impl {
 
             leaf as-number {
                 mandatory true;
-                type int32;
+                type uint32;
             }
         }
     }
@@ -190,7 +190,7 @@ module bgp-rib-impl {
         case rib-impl {
             when "/config:modules/config:module/config:type = 'rib-impl'";
 
-            container bgp {
+            list bgp {
                 uses config:service-ref {
                     refine type {
                         mandatory true;
@@ -235,6 +235,18 @@ module bgp-rib-impl {
                 }
             }
 
+            leaf local-as {
+               description "Our local AS number. Needed by best selection path attribute.";
+                type uint32;
+                mandatory true;
+            }
+
+            leaf bgp-id {
+                       description "Our local BGP identifier. Needed by best selection path attribute.";
+                mandatory true;
+                type string;
+            }
+
             leaf rib-id {
                 type rib:rib-id;
                 mandatory true;