summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-07-21 19:20:07 -0400
committerGitHub <noreply@github.com>2021-07-21 19:20:07 -0400
commit9a549c4fbf8d7c43339e20bf0a37ce8ff1594160 (patch)
tree6b476faeb4e69debdbccbd9d0bca49dfdb11ef50 /lib/command.c
parentc12647b9907d12831c64e22195f5de5a07a56e45 (diff)
parentd9331fc67c3c68302930f64fada992512e18f7d2 (diff)
Merge pull request #9105 from idryzhov/vtysh-ls-pw
vtysh, lib, zebra: fix exit from link-params and pseudowire nodes
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;
}