]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Allow 'no set community`
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 16 Dec 2018 18:54:41 +0000 (13:54 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Dec 2018 12:09:44 +0000 (07:09 -0500)
Allow user to enter `no set community` to remove the community
set for the route-map.

Fixes: #3491
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_routemap.c

index a308e8fec6e22f2e0fd64f3c673df634a0a61aa2..851d70d4d9b8a07de19eafa7616251737f296c2b 100644 (file)
@@ -4200,6 +4200,13 @@ DEFUN (no_set_community,
                                  "community", NULL);
 }
 
+ALIAS (no_set_community,
+       no_set_community_short_cmd,
+       "no set community",
+       NO_STR
+       SET_STR
+       "BGP community attribute\n")
+
 
 DEFUN (set_community_delete,
        set_community_delete_cmd,
@@ -4976,6 +4983,7 @@ void bgp_route_map_init(void)
        install_element(RMAP_NODE, &set_community_cmd);
        install_element(RMAP_NODE, &set_community_none_cmd);
        install_element(RMAP_NODE, &no_set_community_cmd);
+       install_element(RMAP_NODE, &no_set_community_short_cmd);
        install_element(RMAP_NODE, &set_community_delete_cmd);
        install_element(RMAP_NODE, &no_set_community_delete_cmd);
        install_element(RMAP_NODE, &set_lcommunity_cmd);