From: Daniel Walton Date: Wed, 18 Nov 2015 18:54:23 +0000 (+0000) Subject: BGP: extcommunity-list are displayed before community-list X-Git-Tag: frr-2.0-rc1~1197 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=eb2674af89fbd4a81867528ffc0884191182bcb9;p=mirror%2Ffrr.git BGP: extcommunity-list are displayed before community-list Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp 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" --- diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index a0f973588b..0bd82b95d8 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -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);