From: anlan_cs Date: Wed, 18 Aug 2021 07:19:07 +0000 (-0400) Subject: vtysh: add "exit" for bfd's profile node X-Git-Tag: base_8.1~169^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9231ec75be6b9b967add1a22b6e4467da98df84e;p=mirror%2Ffrr.git vtysh: add "exit" for bfd's profile node Since no "exit-bfd-profile", need add "exit" for profile node. Signed-off-by: anlan_cs --- diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 998ead6b76..97637d23ab 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -830,7 +830,8 @@ int vtysh_mark_file(const char *filename) } else if ((prev_node == KEYCHAIN_KEY_NODE) && (tried == 1)) { vty_out(vty, "exit\n"); - } else if ((prev_node == BFD_PEER_NODE) + } else if ((prev_node == BFD_PEER_NODE + || prev_node == BFD_PROFILE_NODE) && (tried == 1)) { vty_out(vty, "exit\n"); } else if (((prev_node == SEGMENT_ROUTING_NODE)