vtysh: Allow service ... lines to not repeat

When any `service ...` line is entered and there are multiple
daemons running prevent this from being displayed multiple times.

Fixes: #5475
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-11-03 12:59:01 -04:00
parent c4f16627d3
commit f531fae829

View File

@ -492,8 +492,8 @@ 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 cputime-stats",
strlen("service cputime-stats")) == 0 ||
strncmp(line, "service ", strlen("service ")) ==
0 ||
strncmp(line, "no service cputime-stats",
strlen("no service cputime-stats")) == 0 ||
strncmp(line, "service cputime-warning",