From f531fae8290c71ab7922f352940c912c94e7f9ca Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 3 Nov 2022 12:59:01 -0400 Subject: [PATCH] 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 --- vtysh/vtysh_config.c | 4 ++-- 1 file 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", -- 2.39.5