mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:23:06 +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;
|
return CMD_ERR_INCOMPLETE;
|
||||||
case CMD_SUCCESS:
|
case CMD_SUCCESS:
|
||||||
vty_out(vty, "%s", vty->buf);
|
vty_out(vty, "%s", vty->buf);
|
||||||
|
if (strmatch(vty_buf_trimmed, "exit-vrf"))
|
||||||
|
vty_out(vty, "end\n");
|
||||||
break;
|
break;
|
||||||
case CMD_SUCCESS_DAEMON: {
|
case CMD_SUCCESS_DAEMON: {
|
||||||
int cmd_stat;
|
int cmd_stat;
|
||||||
|
|
||||||
vty_out(vty, "%s", vty->buf);
|
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],
|
cmd_stat = vtysh_client_execute(&vtysh_client[0],
|
||||||
vty->buf);
|
vty->buf);
|
||||||
if (cmd_stat != CMD_SUCCESS)
|
if (cmd_stat != CMD_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user