summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-11-03 17:59:01 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-11-03 18:01:35 +0100
commitf531fae8290c71ab7922f352940c912c94e7f9ca (patch)
tree53eeb0e4efd95c1e6f2c1c07cfce3d9a91fdba09
parentbgpd: rfapi doc strings are messed up for one command (diff)
downloadfrr-f531fae8290c71ab7922f352940c912c94e7f9ca.tar.xz
frr-f531fae8290c71ab7922f352940c912c94e7f9ca.zip
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 0f28b49f7..1ebc84b35 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",