From 7f121ef718f5f20521e2e968b65e580b5881d8f0 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Mon, 8 Jul 2019 17:38:28 -0300 Subject: [PATCH] yang: change single hop `leaf` order 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 --- yang/frr-bfdd.yang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yang/frr-bfdd.yang b/yang/frr-bfdd.yang index 4604f747c6..24ca8f68a8 100644 --- a/yang/frr-bfdd.yang +++ b/yang/frr-bfdd.yang @@ -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;