]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: add route-map to `no` advertise ipvX * cmd
authorStephen Worley <sworley@nvidia.com>
Wed, 3 Mar 2021 17:56:27 +0000 (12:56 -0500)
committerStephen Worley <sworley@nvidia.com>
Tue, 23 Aug 2022 16:41:25 +0000 (12:41 -0400)
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>
bgpd/bgp_evpn_vty.c

index 13a63f153c4aeee61c798e1deccd884572db06b3..d703830f2fd483076df385b2c6f61c3b68c6f136 100644 (file)
@@ -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;