]> git.puffer.fish Git - mirror/frr.git/commitdiff
yang: Fix pyang errors in frr-interface.yang 18716/head
authorY Bharath <y.bharath@samsung.com>
Thu, 24 Apr 2025 06:42:12 +0000 (12:12 +0530)
committerY Bharath <y.bharath@samsung.com>
Thu, 24 Apr 2025 06:42:12 +0000 (12:12 +0530)
Fix pyang warnings and errors in frr-interface.yang

Signed-off-by: y-bharath14 <y.bharath@samsung.com>
yang/frr-interface.yang

index fc5a29090876503c4d10a1f2a92df3d0f0d8b11d..0feb1c106831828cf428f6b499f77392b1effa51 100644 (file)
@@ -52,14 +52,17 @@ module frr-interface {
   revision 2020-02-05 {
     description
       "Added operational data";
+    reference "FRRouting";
   }
   revision 2019-09-09 {
     description
       "Added interface-ref typedef";
+    reference "FRRouting";
   }
   revision 2018-03-28 {
     description
       "Initial revision.";
+    reference "FRRouting";
   }
 
   identity other {
@@ -229,9 +232,14 @@ module frr-interface {
           "IPv6 enabled.";
       }
     }
+    description
+      "Type definition for interface flags.";
   }
 
   grouping if-common-operational {
+    description
+      "Common operational data for interfaces.";
+
     leaf if-index {
       type int32 {
         range "0..2147483647";
@@ -289,6 +297,9 @@ module frr-interface {
   }
 
   container lib {
+    description
+      "Library container.";
+
     list interface {
       key "name";
       description
@@ -301,9 +312,9 @@ module frr-interface {
 
       leaf vrf {
         type frr-vrf:vrf-ref;
+        config false;
         description
           "VRF this interface is associated with.";
-        config false;
       }
 
       leaf description {
@@ -314,6 +325,8 @@ module frr-interface {
 
       container state {
         config false;
+        description
+          "State information for the interface.";
         uses if-common-operational;
       }
     }