summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/event.c20
-rw-r--r--vtysh/vtysh_config.c12
2 files changed, 6 insertions, 26 deletions
diff --git a/lib/event.c b/lib/event.c
index b971bd70e6..4b4ca9d7ea 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -355,7 +355,7 @@ DEFPY (service_cputime_stats,
DEFPY (service_cputime_warning,
service_cputime_warning_cmd,
- "[no] service cputime-warning (1-4294967295)",
+ "[no] service cputime-warning ![(1-4294967295)]",
NO_STR
"Set up miscellaneous service\n"
"Warn for tasks exceeding CPU usage threshold\n"
@@ -368,16 +368,9 @@ DEFPY (service_cputime_warning,
return CMD_SUCCESS;
}
-ALIAS (service_cputime_warning,
- no_service_cputime_warning_cmd,
- "no service cputime-warning",
- NO_STR
- "Set up miscellaneous service\n"
- "Warn for tasks exceeding CPU usage threshold\n")
-
DEFPY (service_walltime_warning,
service_walltime_warning_cmd,
- "[no] service walltime-warning (1-4294967295)",
+ "[no] service walltime-warning ![(1-4294967295)]",
NO_STR
"Set up miscellaneous service\n"
"Warn for tasks exceeding total wallclock threshold\n"
@@ -390,13 +383,6 @@ DEFPY (service_walltime_warning,
return CMD_SUCCESS;
}
-ALIAS (service_walltime_warning,
- no_service_walltime_warning_cmd,
- "no service walltime-warning",
- NO_STR
- "Set up miscellaneous service\n"
- "Warn for tasks exceeding total wallclock threshold\n")
-
static void show_thread_poll_helper(struct vty *vty, struct event_loop *m)
{
const char *name = m->name ? m->name : "main";
@@ -525,9 +511,7 @@ void event_cmd_init(void)
install_element(CONFIG_NODE, &service_cputime_stats_cmd);
install_element(CONFIG_NODE, &service_cputime_warning_cmd);
- install_element(CONFIG_NODE, &no_service_cputime_warning_cmd);
install_element(CONFIG_NODE, &service_walltime_warning_cmd);
- install_element(CONFIG_NODE, &no_service_walltime_warning_cmd);
install_element(VIEW_NODE, &show_thread_timers_cmd);
}
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 6254a93766..ae64d51283 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -484,8 +484,7 @@ void vtysh_config_parse_line(void *arg, const char *line)
config = config_get(RPKI_NODE, line);
else {
if (strncmp(line, "log", strlen("log")) == 0 ||
- strncmp(line, "hostname", strlen("hostname")) ==
- 0 ||
+ strncmp(line, "hostname", strlen("hostname")) == 0 ||
strncmp(line, "domainname", strlen("domainname")) ==
0 ||
strncmp(line, "allow-reserved-ranges",
@@ -497,12 +496,9 @@ 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 ", strlen("service ")) ==
- 0 ||
- strncmp(line, "no service cputime-stats",
- strlen("no service cputime-stats")) == 0 ||
- strncmp(line, "service cputime-warning",
- strlen("service cputime-warning")) == 0)
+ strncmp(line, "service ", strlen("service ")) == 0 ||
+ strncmp(line, "no service ",
+ strlen("no service ")) == 0)
config_add_line_uniq(config_top, line);
else
config_add_line(config_top, line);