mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 03:28:31 +00:00
bgpd: remove DEFUN_DEPRECATED usage
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
20d8a28413
commit
f07e1c4fe4
@ -2009,27 +2009,19 @@ DEFUN (no_bgp_fast_external_failover,
|
|||||||
CPP_NOTICE("bgpd: remove deprecated '[no] bgp enforce-first-as' commands")
|
CPP_NOTICE("bgpd: remove deprecated '[no] bgp enforce-first-as' commands")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEFUN_DEPRECATED (bgp_enforce_first_as,
|
DEFUN_HIDDEN (bgp_enforce_first_as,
|
||||||
bgp_enforce_first_as_cmd,
|
bgp_enforce_first_as_cmd,
|
||||||
"bgp enforce-first-as",
|
"[no] bgp enforce-first-as",
|
||||||
BGP_STR
|
|
||||||
"Enforce the first AS for EBGP routes\n")
|
|
||||||
{
|
|
||||||
VTY_DECLVAR_CONTEXT(bgp, bgp);
|
|
||||||
bgp_flag_set(bgp, BGP_FLAG_ENFORCE_FIRST_AS);
|
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFUN_DEPRECATED (no_bgp_enforce_first_as,
|
|
||||||
no_bgp_enforce_first_as_cmd,
|
|
||||||
"no bgp enforce-first-as",
|
|
||||||
NO_STR
|
NO_STR
|
||||||
BGP_STR
|
BGP_STR
|
||||||
"Enforce the first AS for EBGP routes\n")
|
"Enforce the first AS for EBGP routes\n")
|
||||||
{
|
{
|
||||||
VTY_DECLVAR_CONTEXT(bgp, bgp);
|
VTY_DECLVAR_CONTEXT(bgp, bgp);
|
||||||
|
|
||||||
|
if (strmatch(argv[0]->text, "no"))
|
||||||
bgp_flag_unset(bgp, BGP_FLAG_ENFORCE_FIRST_AS);
|
bgp_flag_unset(bgp, BGP_FLAG_ENFORCE_FIRST_AS);
|
||||||
|
else
|
||||||
|
bgp_flag_set(bgp, BGP_FLAG_ENFORCE_FIRST_AS);
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -12439,7 +12431,6 @@ void bgp_vty_init(void)
|
|||||||
|
|
||||||
/* "bgp enforce-first-as" commands */
|
/* "bgp enforce-first-as" commands */
|
||||||
install_element(BGP_NODE, &bgp_enforce_first_as_cmd);
|
install_element(BGP_NODE, &bgp_enforce_first_as_cmd);
|
||||||
install_element(BGP_NODE, &no_bgp_enforce_first_as_cmd);
|
|
||||||
|
|
||||||
/* "bgp bestpath compare-routerid" commands */
|
/* "bgp bestpath compare-routerid" commands */
|
||||||
install_element(BGP_NODE, &bgp_bestpath_compare_router_id_cmd);
|
install_element(BGP_NODE, &bgp_bestpath_compare_router_id_cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user