summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-12-06 14:55:20 +0100
committerGitHub <noreply@github.com>2022-12-06 14:55:20 +0100
commitbe51a459845554adc14024de19145ebcbbf661c3 (patch)
tree2d3ba1c6611c9d863a69fba0517629a9b744355d /vtysh
parentMerge pull request #12432 from mjstapp/use_real_mtypes (diff)
parentvtysh: add motd command (diff)
downloadfrr-be51a459845554adc14024de19145ebcbbf661c3.tar.xz
frr-be51a459845554adc14024de19145ebcbbf661c3.zip
Merge pull request #12410 from ghzserg/master
Add motd command
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 30f117505..dea09fa15 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -3939,6 +3939,12 @@ DEFUN (vtysh_ping,
return CMD_SUCCESS;
}
+DEFUN(vtysh_motd, vtysh_motd_cmd, "show motd", SHOW_STR "Show motd\n")
+{
+ vty_hello(vty);
+ return CMD_SUCCESS;
+}
+
ALIAS(vtysh_ping, vtysh_ping_ip_cmd, "ping ip WORD",
"Send echo messages\n"
"IP echo\n"
@@ -4907,6 +4913,7 @@ void vtysh_init_vty(void)
install_element(VIEW_NODE, &no_vtysh_terminal_monitor_cmd);
install_element(VIEW_NODE, &vtysh_ping_cmd);
+ install_element(VIEW_NODE, &vtysh_motd_cmd);
install_element(VIEW_NODE, &vtysh_ping_ip_cmd);
install_element(VIEW_NODE, &vtysh_traceroute_cmd);
install_element(VIEW_NODE, &vtysh_traceroute_ip_cmd);