summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-17 01:53:47 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-05-17 17:34:30 +0000
commitf14b7abf4f36f6ebcd6280df41b430e062a696c2 (patch)
treeb630b986c67131582ed61035d969f0a05f7c2a58
parentdbb3cdb601642c1259cffca3b7c85e80e628abd7 (diff)
vtysh: fix ldpd vtysh
ldpd needs a special case to execute the correct exit command for walkup when using vtysh Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--vtysh/vtysh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 5bb969bef7..5c39e1ee90 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -324,7 +324,11 @@ vtysh_execute_func (const char *line, int pager)
{
vtysh_execute("exit-vnc");
}
- else if ((saved_node == KEYCHAIN_KEY_NODE) && (tried == 1))
+ else if ((saved_node == KEYCHAIN_KEY_NODE
+ || saved_node == LDP_PSEUDOWIRE_NODE
+ || saved_node == LDP_IPV4_IFACE_NODE
+ || saved_node == LDP_IPV6_IFACE_NODE)
+ && (tried == 1))
{
vtysh_execute("exit");
}