BUG-2383 : Application peer rework.
[bgpcep.git] / bgp / rib-impl / src / main / yang / odl-bgp-rib-impl-cfg.yang
index 484ab8730297d28e32f4a58ccbe69daeb3ea35b8..05919b0dd9eb8aece2eaebec49f5528d57897f94 100644 (file)
@@ -12,6 +12,7 @@ module odl-bgp-rib-impl-cfg {
     import odl-bgp-rib-spi-cfg { prefix ribspi; revision-date 2013-11-15; }
     import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
     import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
+    import opendaylight-md-sal-dom {prefix sal; revision-date 2013-10-28; }
     import netty { prefix netty; revision-date 2013-11-19; }
     import config { prefix config; revision-date 2013-04-05; }
     import protocol-framework { prefix pf; revision-date 2014-03-13; }
@@ -228,7 +229,7 @@ module odl-bgp-rib-impl-cfg {
                 uses config:service-ref {
                     refine type {
                         mandatory true;
-                        config:required-identity mdsb:binding-async-data-broker;
+                        config:required-identity sal:dom-async-data-broker;
                     }
                 }
             }
@@ -439,6 +440,12 @@ module odl-bgp-rib-impl-cfg {
             default "false";
         }
 
+        leaf gr-capability {
+            description "BGP graceful restart support capability.";
+            type boolean;
+            default "false";
+        }
+
         list advertized-table-types {
             description "The BGP Table-type capabilities advertized by the BGP peer.";
             leaf afi {
@@ -631,6 +638,24 @@ module odl-bgp-rib-impl-cfg {
                 }
             }
 
+            container codec-tree-factory {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity mdsb:binding-codec-tree-factory;
+                    }
+                }
+            }
+
+            container dom-data-provider {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity sal:dom-async-data-broker;
+                    }
+                }
+            }
+
             leaf local-as {
                 description "Our local AS number. Needed by best selection path attribute.";
                 type uint32;
@@ -657,6 +682,12 @@ module odl-bgp-rib-impl-cfg {
                 type rib:rib-id;
                 mandatory true;
             }
+
+            leaf cluster-id {
+                description "IBGP identifier. Needed by route reflection.";
+                reference "https://tools.ietf.org/html/rfc4456#section-7";
+                type inet:ipv4-address;
+            }
         }
     }
 }