diff --git a/tools/frr-reload.py b/tools/frr-reload.py index d4020cdfc9..e9641b2b13 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -496,6 +496,7 @@ end line.startswith("vnc defaults") or line.startswith("vnc l2-group") or line.startswith("vnc nve-group") or + line.startswith("peer") or line.startswith("member pseudowire")): main_ctx_key = [] diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 15ec866fc9..4fdf68c0e6 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -809,6 +809,9 @@ 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) + && (tried == 1)) { + vty_out(vty, "exit\n"); } else if (tried) { vty_out(vty, "end\n"); }