]> git.puffer.fish Git - mirror/frr.git/commitdiff
BGP: extcommunity-list are displayed before community-list
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 18 Nov 2015 18:54:23 +0000 (18:54 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 18 Nov 2015 18:54:23 +0000 (18:54 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-8271

"ip extcommunity-list" is displayed as part of COMMUNITY_LIST_NODE
but vtysh_config_parse_line() was not checking for "ip extcommunity-list"

vtysh/vtysh_config.c

index a0f973588b23595e678c5210bc3d1f5850229b51..0bd82b95d8185717707e9e976329763200ccea91 100644 (file)
@@ -241,8 +241,8 @@ vtysh_config_parse_line (const char *line)
       else if (strncmp (line, "ip as-path access-list",
               strlen ("ip as-path access-list")) == 0)
        config = config_get (AS_LIST_NODE, line);
-      else if (strncmp (line, "ip community-list",
-              strlen ("ip community-list")) == 0)
+      else if (strncmp (line, "ip community-list", strlen ("ip community-list")) == 0 ||
+               strncmp (line, "ip extcommunity-list", strlen ("ip extcommunity-list")) == 0)
        config = config_get (COMMUNITY_LIST_NODE, line);
       else if (strncmp (line, "ip route", strlen ("ip route")) == 0)
        config = config_get (IP_NODE, line);