From c0e8367230609bd3e90c477fa10d09d8efbf64a9 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 18 Sep 2019 14:19:55 +0300 Subject: [PATCH] vtysh: fix multiple "no ip/ipv6 prefix-list sequence-number" lines in running-config Signed-off-by: Igor Ryzhov --- vtysh/vtysh_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);