From: Stephen Worley Date: Wed, 3 Mar 2021 17:56:27 +0000 (-0500) Subject: bgpd: add route-map to `no` advertise ipvX * cmd X-Git-Tag: frr-8.4-rc~1^2~6 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=24df3379881fc7bec6c23294ca5b8c33fcecab63;p=matthieu%2Ffrr.git 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 --- diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 13a63f153c..d703830f2f 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;