diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-17 01:53:47 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-17 17:34:30 +0000 |
| commit | f14b7abf4f36f6ebcd6280df41b430e062a696c2 (patch) | |
| tree | b630b986c67131582ed61035d969f0a05f7c2a58 | |
| parent | dbb3cdb601642c1259cffca3b7c85e80e628abd7 (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.c | 6 |
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"); } |
