BUG-4827: Create grouping for Path-id and make it by default 0
[bgpcep.git] / bgp / parser-api / src / main / yang / bgp-message.yang
index 9b8663d19b87b51bd69d525766ed171de77fb005..917001e53d1dc00fc4011a965296de69ae9b29c5 100644 (file)
@@ -40,12 +40,19 @@ module bgp-message {
 
     typedef path-id {
         type uint32;
+        default 0;
         description
             "Identifier of a single path. The identifier does not
              carry any semantic meaning beyond uniquely identifying
              a path.";
     }
 
+    grouping path-id-grouping {
+        leaf path-id {
+            type path-id;
+        }
+    }
+
     grouping originator-id {
         leaf originator {
             type inet:ipv4-address;