]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: add "exit" for bfd's profile node 9436/head
authoranlan_cs <anlan_cs@tom.com>
Wed, 18 Aug 2021 07:19:07 +0000 (03:19 -0400)
committeranlan_cs <anlan_cs@tom.com>
Wed, 18 Aug 2021 08:09:20 +0000 (04:09 -0400)
Since no "exit-bfd-profile", need add "exit" for profile node.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
vtysh/vtysh.c

index 998ead6b76388c134aed269a91d0bb5491dd5510..97637d23ab1784fe3f7d5240a7f557f176a3bf6e 100644 (file)
@@ -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)