summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-11-03 12:59:01 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-11-03 13:01:35 -0400
commitf531fae8290c71ab7922f352940c912c94e7f9ca (patch)
tree53eeb0e4efd95c1e6f2c1c07cfce3d9a91fdba09
parentc4f16627d3dd2614a5ecec447fd1c62a740349ab (diff)
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>
-rw-r--r--vtysh/vtysh_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 0f28b49f72..1ebc84b356 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -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",