diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2015-11-18 19:54:23 +0100 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2015-11-18 19:54:23 +0100 |
commit | eb2674af89fbd4a81867528ffc0884191182bcb9 (patch) | |
tree | ca76080a8d2709504c5e7ac4453952098ef02978 /vtysh | |
parent | BGP: Handle router-id correctly in config and display. (diff) | |
download | frr-eb2674af89fbd4a81867528ffc0884191182bcb9.tar.xz frr-eb2674af89fbd4a81867528ffc0884191182bcb9.zip |
BGP: extcommunity-list are displayed before community-list
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"
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index a0f973588..0bd82b95d 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); |