]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: Corrected Pyang errors or warnings
authorY Bharath <y.bharath@samsung.com>
Fri, 21 Feb 2025 09:33:31 +0000 (15:03 +0530)
committerY Bharath <y.bharath@samsung.com>
Fri, 21 Feb 2025 09:33:31 +0000 (15:03 +0530)
Corrected Pyang errors or warnings at frr-route-types.yang file

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

index aa676cebc203b4a1bc2d2f115f194a552be5cfa7..76aa90e77880049de6de56bdb68986759aff55f6 100644 (file)
@@ -50,111 +50,144 @@ module frr-route-types {
     type enumeration {
       enum kernel {
         value 1;
+        description "Kernel route";
       }
       enum connected {
         value 2;
+        description "Connected route";
       }
       enum local {
         value 3;
+        description "Local route";
       }
       enum static {
         value 4;
+        description "Static route";
       }
       enum rip {
         value 5;
+        description "RIP route";
       }
       enum ospf {
         value 7;
+        description "OSPF route";
       }
       enum isis {
         value 9;
+        description "ISIS route";
       }
       enum bgp {
         value 10;
+        description "BGP route";
       }
       enum eigrp {
         value 12;
+        description "EIGRP route";
       }
       enum nhrp {
         value 13;
+        description "NHRP route";
       }
       enum table {
         value 16;
+        description "Table route";
       }
       enum vnc {
         value 18;
+        description "VNC route";
       }
       enum vnc-direct {
         value 19;
+        description "VNC Direct route";
       }
       enum babel {
         value 23;
+        description "Babel route";
       }
       enum sharp {
         value 24;
+        description "SHARP route";
       }
       enum openfabric {
         value 27;
+        description "Openfabric route";
       }
     }
+    description "Enumeration of supported IPv4 route types";
   }
 
   typedef frr-route-types-v6 {
     type enumeration {
       enum kernel {
         value 1;
+        description "Kernel route";
       }
       enum connected {
         value 2;
+        description "Connected route";
       }
       enum local {
         value 3;
+        description "Local route";
       }
       enum static {
         value 4;
+        description "Static route";
       }
       enum ripng {
         value 6;
+        description "RIPng route";
       }
       enum ospf6 {
         value 8;
+        description "OSPFv3 route";
       }
       enum isis {
         value 9;
+        description "ISIS route";
       }
       enum bgp {
         value 10;
+        description "BGP route";
       }
       enum nhrp {
         value 13;
+        description "NHRP route";
       }
       enum table {
         value 16;
+        description "Table route";
       }
       enum vnc {
         value 18;
+        description "VNC route";
       }
       enum vnc-direct {
         value 19;
+        description "VNC Direct route";
       }
       enum babel {
         value 23;
+        description "Babel route";
       }
       enum sharp {
         value 24;
+        description "SHARP route";
       }
       enum openfabric {
         value 27;
+        description "OpenFabric route";
       }
     }
+    description "Enumeration of supported IPv6 route types";
   }
 
   typedef frr-route-types {
-    description "Route types as enumerated in `lib/route_types.txt`";
     type union {
       type frr-route-types-v4;
       type frr-route-types-v6;
     }
+    description "Route types as enumerated in `lib/route_types.txt`";
   }
 
   typedef ipv4-multicast-group-prefix {
@@ -177,12 +210,12 @@ module frr-route-types {
   }
 
   typedef ip-multicast-group-prefix {
-    description "The IP-Multicast-Group-Address-Prefix type represents an IP multicast address
-    prefix and is IP version neutral. The format of the textual representations implies the IP
-    version. It includes a prefix-length, separated by a '/' sign.";
     type union {
       type ipv4-multicast-group-prefix;
       type ipv6-multicast-group-prefix;
     }
+    description "The IP-Multicast-Group-Address-Prefix type represents an IP multicast address
+    prefix and is IP version neutral. The format of the textual representations implies the IP
+    version. It includes a prefix-length, separated by a '/' sign.";
   }
 }