mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 10:18:39 +00:00
vtysh: Print uniq lines when parsing no service ...
Before this patch: ``` no service cputime-warning no service cputime-warning no ipv6 forwarding no service cputime-warning no service cputime-warning no service cputime-warning ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
950da676e6
commit
c503809550
@ -495,8 +495,7 @@ void vtysh_config_parse_line(void *arg, const char *line)
|
||||
config = config_get(RPKI_NODE, line);
|
||||
else {
|
||||
if (strncmp(line, "log", strlen("log")) == 0 ||
|
||||
strncmp(line, "hostname", strlen("hostname")) ==
|
||||
0 ||
|
||||
strncmp(line, "hostname", strlen("hostname")) == 0 ||
|
||||
strncmp(line, "domainname", strlen("domainname")) ==
|
||||
0 ||
|
||||
strncmp(line, "allow-reserved-ranges",
|
||||
@ -508,12 +507,9 @@ void vtysh_config_parse_line(void *arg, const char *line)
|
||||
strlen("no ip prefix-list")) == 0 ||
|
||||
strncmp(line, "no ipv6 prefix-list",
|
||||
strlen("no ipv6 prefix-list")) == 0 ||
|
||||
strncmp(line, "service ", strlen("service ")) ==
|
||||
0 ||
|
||||
strncmp(line, "no service cputime-stats",
|
||||
strlen("no service cputime-stats")) == 0 ||
|
||||
strncmp(line, "service cputime-warning",
|
||||
strlen("service cputime-warning")) == 0)
|
||||
strncmp(line, "service ", strlen("service ")) == 0 ||
|
||||
strncmp(line, "no service ",
|
||||
strlen("no service ")) == 0)
|
||||
config_add_line_uniq(config_top, line);
|
||||
else
|
||||
config_add_line(config_top, line);
|
||||
|
Loading…
Reference in New Issue
Block a user