From eb2674af89fbd4a81867528ffc0884191182bcb9 Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Wed, 18 Nov 2015 18:54:23 +0000 Subject: [PATCH] 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" --- vtysh/vtysh_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5