summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn_vty.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2021-03-03 18:56:27 +0100
committerStephen Worley <sworley@nvidia.com>2022-08-23 18:41:25 +0200
commit24df3379881fc7bec6c23294ca5b8c33fcecab63 (patch)
treeeb724f9570e05c7dfc8f3ed9744caae2eaf56fb1 /bgpd/bgp_evpn_vty.c
parentbgpd: evpn L3 RT auto config and wildcard implementation (diff)
downloadfrr-24df3379881fc7bec6c23294ca5b8c33fcecab63.tar.xz
frr-24df3379881fc7bec6c23294ca5b8c33fcecab63.zip
bgpd: add route-map to `no` advertise ipvX * cmd
Add route-map as a possible word for the `no` form of `advertise ipvX *** [route-map WORD] cmd. Before this patch the cmd was only accepted if `no` form was given without route-map WORD. So if you just copypaste the original version of the cmd, it would fail. Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
-rw-r--r--bgpd/bgp_evpn_vty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 13a63f153..d703830f2 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -4024,11 +4024,13 @@ DEFUN (bgp_evpn_advertise_type5,
DEFUN (no_bgp_evpn_advertise_type5,
no_bgp_evpn_advertise_type5_cmd,
- "no advertise " BGP_AFI_CMD_STR "" BGP_SAFI_CMD_STR,
+ "no advertise " BGP_AFI_CMD_STR "" BGP_SAFI_CMD_STR " [route-map WORD]",
NO_STR
"Advertise prefix routes\n"
BGP_AFI_HELP_STR
- BGP_SAFI_HELP_STR)
+ BGP_SAFI_HELP_STR
+ "route-map for filtering specific routes\n"
+ "Name of the route map\n")
{
struct bgp *bgp_vrf = VTY_GET_CONTEXT(bgp); /* bgp vrf instance */
int idx_afi = 0;