mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 02:49:37 +00:00
vtysh: Properly handle service cputime-warning XX
in config
Prevent duplicate lines from each daemon in vtysh output. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
54b7d471f3
commit
17c149ff1b
@ -493,7 +493,9 @@ void vtysh_config_parse_line(void *arg, const char *line)
|
||||
strncmp(line, "service cputime-stats",
|
||||
strlen("service cputime-stats")) == 0 ||
|
||||
strncmp(line, "no service cputime-stats",
|
||||
strlen("no service cputime-stats")) == 0)
|
||||
strlen("no service cputime-stats")) == 0 ||
|
||||
strncmp(line, "service cputime-warning",
|
||||
strlen("service cputime-warning")) == 0)
|
||||
config_add_line_uniq(config_top, line);
|
||||
else
|
||||
config_add_line(config_top, line);
|
||||
|
Loading…
Reference in New Issue
Block a user