mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 16:06:20 +00:00
Merge pull request #4706 from qlyoung/fix-exit-vrf-markfile
vtysh: mark exit-vrf with end when using vtysh -m
This commit is contained in:
commit
ce935bc284
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user