vtysh: Fix for the ordering of large-community lists in config output

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
This commit is contained in:
Nigel Kukard 2017-08-28 18:35:15 +00:00
parent 3df31ebb03
commit 344d9016be

View File

@ -245,6 +245,9 @@ void vtysh_config_parse_line(void *arg, const char *line)
== 0 == 0
|| strncmp(line, "ip extcommunity-list", || strncmp(line, "ip extcommunity-list",
strlen("ip extcommunity-list")) strlen("ip extcommunity-list"))
== 0
|| strncmp(line, "ip large-community-list",
strlen("ip large-community-list"))
== 0) == 0)
config = config_get(COMMUNITY_LIST_NODE, line); config = config_get(COMMUNITY_LIST_NODE, line);
else if (strncmp(line, "ip route", strlen("ip route")) == 0) else if (strncmp(line, "ip route", strlen("ip route")) == 0)