ADD-PATH capability bug fix
[bgpcep.git] / bgp / parser-api / src / main / yang / bgp-multiprotocol.yang
index ff816f35161d4166071ea2b50fc93febc2b0c83e..c3eacbd5b9d69e830d7be5d1be8e6caa746c6f78 100644 (file)
@@ -34,6 +34,14 @@ module bgp-multiprotocol {
         reference "RFC4760";
     }
 
+    typedef send-receive {
+        type enumeration {
+            enum receive { value 1; }
+            enum send { value 2; }
+            enum both { value 3; }
+        }
+    }
+
     grouping bgp-table-type {
         leaf afi {
             type identityref {
@@ -97,11 +105,7 @@ module bgp-multiprotocol {
             list address-families {
                 uses bgp-table-type;
                 leaf send-receive {
-                    type enumeration {
-                        enum receive { value 1; }
-                        enum send { value 2; }
-                        enum both { value 3; }
-                    }
+                    type send-receive;
                 }
             }
         }