summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-21 17:23:45 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-21 17:23:45 +0300
commitd9331fc67c3c68302930f64fada992512e18f7d2 (patch)
tree6b476faeb4e69debdbccbd9d0bca49dfdb11ef50 /lib/command.c
parent92de4c7fb6ff4fcff6542346381f89ecdc09bbd7 (diff)
lib, zebra: fix exit from link-params node
When exiting from link-params node, we must not decrement xpath_index because it is not incremented when entering the node. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 9dac60599c..fe17c68a8b 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -160,6 +160,9 @@ static bool vty_check_node_for_xpath_decrement(enum node_type target_node,
|| node == BGP_FLOWSPECV6_NODE))
return false;
+ if (target_node == INTERFACE_NODE && node == LINK_PARAMS_NODE)
+ return false;
+
return true;
}