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:
David Schweizer 2020-08-17 17:43:57 +02:00
parent f80e35b602
commit 1e12ebbca3
No known key found for this signature in database
GPG Key ID: A07D97BEEE79EF7F

View File

@ -3600,7 +3600,7 @@ DEFUN (bgp_default_shutdown,
return CMD_SUCCESS;
}
DEFPY (bgp_shutdown,
DEFPY (bgp_shutdown_msg,
bgp_shutdown_msg_cmd,
"bgp shutdown message MSG...",
BGP_STR
@ -3621,10 +3621,17 @@ DEFPY (bgp_shutdown,
return CMD_SUCCESS;
}
ALIAS(bgp_shutdown, bgp_shutdown_cmd,
"bgp shutdown",
BGP_STR
"Enable administrative shutdown of the BGP instance\n")
DEFPY (bgp_shutdown, bgp_shutdown_cmd,
"bgp shutdown",
BGP_STR
"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,
no_bgp_shutdown_cmd,