]> git.proxmox.com Git - mirror_frr.git/commitdiff
yang: change single hop `leaf` order
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 8 Jul 2019 20:38:28 +0000 (17:38 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 9 Jul 2019 12:49:45 +0000 (09:49 -0300)
Move `source-address` to after the list keys, otherwise the CLI would
get into an invalid state and be unable to set any other configuration
inside that node.

Spotted by Philippe Guibert.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
yang/frr-bfdd.yang

index 4604f747c6b92e23dbe4423b246ad745cb6b12a3..24ca8f68a8b955876766afd7f0f30899afc5e333 100644 (file)
@@ -317,11 +317,6 @@ module frr-bfdd {
           key "dest-addr interface vrf";
           description "List of single hop sessions";
 
-          leaf source-addr {
-            type inet:ip-address;
-            description "Local IP address";
-          }
-
           leaf dest-addr {
             type inet:ip-address;
             description "IP address of the peer";
@@ -339,6 +334,11 @@ module frr-bfdd {
             description "Virtual Routing Domain name";
           }
 
+          leaf source-addr {
+            type inet:ip-address;
+            description "Local IP address";
+          }
+
           uses session-common;
           uses session-echo;