mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 07:25:21 +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",
|
strncmp(line, "service cputime-stats",
|
||||||
strlen("service cputime-stats")) == 0 ||
|
strlen("service cputime-stats")) == 0 ||
|
||||||
strncmp(line, "no service cputime-stats",
|
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);
|
config_add_line_uniq(config_top, line);
|
||||||
else
|
else
|
||||||
config_add_line(config_top, line);
|
config_add_line(config_top, line);
|
||||||
|
Loading…
Reference in New Issue
Block a user