mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
bgpd: fix for BGP instance shutdown CLI error.
* Replaced alias for bgp shutdown command with separate regular command to prevent internal CLI errors. Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
This commit is contained in:
parent
f80e35b602
commit
1e12ebbca3
@ -3600,7 +3600,7 @@ DEFUN (bgp_default_shutdown,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFPY (bgp_shutdown,
|
DEFPY (bgp_shutdown_msg,
|
||||||
bgp_shutdown_msg_cmd,
|
bgp_shutdown_msg_cmd,
|
||||||
"bgp shutdown message MSG...",
|
"bgp shutdown message MSG...",
|
||||||
BGP_STR
|
BGP_STR
|
||||||
@ -3621,10 +3621,17 @@ DEFPY (bgp_shutdown,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALIAS(bgp_shutdown, bgp_shutdown_cmd,
|
DEFPY (bgp_shutdown, bgp_shutdown_cmd,
|
||||||
"bgp shutdown",
|
"bgp shutdown",
|
||||||
BGP_STR
|
BGP_STR
|
||||||
"Enable administrative shutdown of the BGP instance\n")
|
"Enable administrative shutdown of the BGP instance\n")
|
||||||
|
{
|
||||||
|
VTY_DECLVAR_CONTEXT(bgp, bgp);
|
||||||
|
|
||||||
|
bgp_shutdown_enable(bgp, NULL);
|
||||||
|
|
||||||
|
return CMD_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
DEFPY (no_bgp_shutdown,
|
DEFPY (no_bgp_shutdown,
|
||||||
no_bgp_shutdown_cmd,
|
no_bgp_shutdown_cmd,
|
||||||
|
Loading…
Reference in New Issue
Block a user