From 24df3379881fc7bec6c23294ca5b8c33fcecab63 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 3 Mar 2021 12:56:27 -0500 Subject: [PATCH] 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 --- bgpd/bgp_evpn_vty.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5