BUG-4827: Introduce add path tables support and Path Id to rib support
[bgpcep.git] / bgp / parser-api / src / main / yang / bgp-multiprotocol.yang
index c50a2bf4afc7bc3b44fa20f603fea2efc0bc57f2..b1fe925ee88f85d8214e0e41cbdcd52e8784f8f8 100644 (file)
@@ -55,6 +55,13 @@ module bgp-multiprotocol {
         }
     }
 
+    grouping bgp-add-path-table-type {
+        uses bgp-table-type;
+        leaf send-receive {
+            type send-receive;
+        }
+    }
+
     grouping destination {
         choice destination-type {
             // to be augmented
@@ -103,10 +110,7 @@ module bgp-multiprotocol {
         container add-path-capability {
             reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
             list address-families {
-                uses bgp-table-type;
-                leaf send-receive {
-                    type send-receive;
-                }
+                uses bgp-add-path-table-type;
             }
         }
         container route-refresh-capability {