summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2019-09-18 14:19:55 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2019-09-18 14:21:27 +0300
commitc0e8367230609bd3e90c477fa10d09d8efbf64a9 (patch)
treef516a085e2b8b4b73c112b9646c58309abf92dc2
parent5d83c731e36bc0524f084d927a36fb4d2885c2a4 (diff)
vtysh: fix multiple "no ip/ipv6 prefix-list sequence-number" lines in running-config
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
-rw-r--r--vtysh/vtysh_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 3ec2eb239d..e56c6fbf4e 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -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);