]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: Partially revert code to restore functionality
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 19 Mar 2020 02:30:28 +0000 (22:30 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 Mar 2020 22:11:02 +0000 (18:11 -0400)
Partially revert code from commit:
f22b9250853229c93617ffdad139a4762f5f7348

since this broke passive-interface, network and offset-list
commands in rip and ripng

Fixes: #6001
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
yang/frr-eigrpd.yang
yang/frr-ripd.yang
yang/frr-ripngd.yang

index 0c629545706e47c4b04a5dbcf67801f138cff56a..853d8238805ca9c677fd1344aa98c38386920797 100644 (file)
@@ -23,11 +23,6 @@ module frr-eigrpd {
   description
     "This module defines a model for managing FRR eigrpd daemon.";
 
-  revision 2019-09-09 {
-    description
-      "Changed interface references to use
-      frr-interface:interface-ref typedef";
-  }
   revision 2019-06-19 {
     description "Initial revision.";
     reference
@@ -99,7 +94,9 @@ module frr-eigrpd {
 
       leaf-list passive-interface {
         description "List of suppressed interfaces";
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
       }
 
       leaf active-time {
index 94a9ebf3e1edbf18cbe12e7ac8f1fd978b1330f2..07690793f0343c22d20bba79777f47fc8aeba332 100644 (file)
@@ -24,11 +24,6 @@ module frr-ripd {
   description
     "This module defines a model for managing FRR ripd daemon.";
 
-  revision 2019-09-09 {
-    description
-      "Changed interface references to use
-      frr-interface:interface-ref typedef";
-  }
   revision 2017-12-06 {
     description
       "Initial revision.";
@@ -118,7 +113,9 @@ module frr-ripd {
           "Enable RIP on the specified IP network.";
       }
       leaf-list interface {
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
         description
           "Enable RIP on the specified interface.";
       }
@@ -127,15 +124,7 @@ module frr-ripd {
         description
           "Offset-list to modify route metric.";
         leaf interface {
-          type union {
-            type frr-interface:interface-ref;
-            type enumeration {
-              enum '*' {
-                description
-                  "Match all interfaces.";
-              }
-            }
-          }
+          type string;
           description
             "Interface to match. Use '*' to match all interfaces.";
         }
@@ -179,14 +168,18 @@ module frr-ripd {
       }
       leaf-list passive-interface {
         when "../passive-default = 'false'";
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
         description
           "A list of interfaces where the sending of RIP packets
            is disabled.";
       }
       leaf-list non-passive-interface {
         when "../passive-default = 'true'";
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
         description
           "A list of interfaces where the sending of RIP packets
            is enabled.";
index 831758af8604704fc5e5301c4217f20d5c73ed3e..b341b438a4d5a95cbb278cfb1ce04f4e81377bb4 100644 (file)
@@ -24,11 +24,6 @@ module frr-ripngd {
   description
     "This module defines a model for managing FRR ripngd daemon.";
 
-  revision 2019-09-09 {
-    description
-      "Changed interface references to use
-      frr-interface:interface-ref typedef";
-  }
   revision 2018-11-27 {
     description
       "Initial revision.";
@@ -76,7 +71,9 @@ module frr-ripngd {
           "Enable RIPng on the specified IPv6 network.";
       }
       leaf-list interface {
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
         description
           "Enable RIPng on the specified interface.";
       }
@@ -85,15 +82,7 @@ module frr-ripngd {
         description
           "Offset-list to modify route metric.";
         leaf interface {
-          type union {
-            type frr-interface:interface-ref;
-            type enumeration {
-              enum '*' {
-                description
-                  "Match all interfaces.";
-              }
-            }
-          }
+          type string;
           description
             "Interface to match. Use '*' to match all interfaces.";
         }
@@ -129,7 +118,9 @@ module frr-ripngd {
         }
       }
       leaf-list passive-interface {
-        type frr-interface:interface-ref;
+        type string {
+          length "1..16";
+        }
         description
           "A list of interfaces where the sending of RIPng packets
            is disabled.";