diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-18 10:23:45 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-18 10:23:45 -0500 | 
| commit | 7cfc61d32ebd375f7b3c1cf259606c843c548454 (patch) | |
| tree | bb5b44b87e1d288d012ea4c88318f43e15ac746b /vtysh/vtysh_user.c | |
| parent | 689e66945d8b272c8af4e6b8feb3b0056bda771a (diff) | |
lib, vtysh: Rehook the motd command back into vtysh
Code was already in place to read and display a motd, but
no cli was present to make it happen.  Add the cli
back to vtysh.conf.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_user.c')
| -rw-r--r-- | vtysh/vtysh_user.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index 214279fac4..f31c5d623f 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -173,6 +173,14 @@ user_get (const char *name)    return user;  } +DEFUN (banner_motd_file, +       banner_motd_file_cmd, +       "banner motd file [FILE]", +       "\n\n\n\n") +{ +  return cmd_banner_motd_file (argv[0]); +} +  DEFUN (username_nopassword,         username_nopassword_cmd,         "username WORD nopassword", @@ -222,4 +230,5 @@ vtysh_user_init (void)  {    userlist = list_new ();    install_element (CONFIG_NODE, &username_nopassword_cmd); +  install_element (CONFIG_NODE, &banner_motd_file_cmd);  }  | 
