diff options
-rw-r--r-- | vtysh/vtysh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index cec5675e0..fba754f62 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -852,11 +852,15 @@ int vtysh_mark_file(const char *filename) return CMD_ERR_INCOMPLETE; case CMD_SUCCESS: vty_out(vty, "%s", vty->buf); + if (strmatch(vty_buf_trimmed, "exit-vrf")) + vty_out(vty, "end\n"); break; case CMD_SUCCESS_DAEMON: { int cmd_stat; vty_out(vty, "%s", vty->buf); + if (strmatch(vty_buf_trimmed, "exit-vrf")) + vty_out(vty, "end\n"); cmd_stat = vtysh_client_execute(&vtysh_client[0], vty->buf); if (cmd_stat != CMD_SUCCESS) |