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>
This commit is contained in:
Quentin Young 2017-05-17 01:53:47 +00:00
parent dbb3cdb601
commit f14b7abf4f

View File

@ -324,7 +324,11 @@ vtysh_execute_func (const char *line, int pager)
{ {
vtysh_execute("exit-vnc"); 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"); vtysh_execute("exit");
} }