Skip to content

Commit

Permalink
vtysh: fix multiple "no ip/ipv6 prefix-list sequence-number" lines in…
Browse files Browse the repository at this point in the history
… running-config

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
  • Loading branch information
idryzhov committed Sep 18, 2019
1 parent 5d83c73 commit c0e8367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vtysh/vtysh_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ void vtysh_config_parse_line(void *arg, const char *line)
== 0
|| strncmp(line, "frr", strlen("frr")) == 0
|| strncmp(line, "agentx", strlen("agentx")) == 0
|| strncmp(line, "no log", strlen("no log")) == 0)
|| strncmp(line, "no log", strlen("no log")) == 0
|| strncmp(line, "no ip prefix-list", strlen("no ip prefix-list")) == 0
|| strncmp(line, "no ipv6 prefix-list", strlen("no ipv6 prefix-list")) == 0)
config_add_line_uniq(config_top, line);
else
config_add_line(config_top, line);
Expand Down

0 comments on commit c0e8367

Please sign in to comment.