]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fixup password commands 814/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 13 Jul 2017 19:28:41 +0000 (15:28 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 13 Jul 2017 19:28:41 +0000 (15:28 -0400)
`password` and `enable password` commands got a bit broken in an earlier
commit, fix 'em up.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vtysh/vtysh.c

index f02bd0c8888a9e96396f340bfd24b7970c3b6b4a..6fc0e3917b1fdc1d0c979c41d73dc317ccb8c124 100644 (file)
@@ -2445,20 +2445,10 @@ DEFUNSH (VTYSH_ALL,
 DEFUNSH (VTYSH_ALL,
         vtysh_config_password,
         vtysh_password_cmd,
-        "password [(8-8)] WORD",
+        "password [(8-8)] LINE",
         "Assign the terminal connection password\n"
         "Specifies a HIDDEN password will follow\n"
-        "The HIDDEN line password string\n")
-{
-  return CMD_SUCCESS;
-}
-
-DEFUNSH (VTYSH_ALL,
-        vtysh_password_text,
-        vtysh_password_text_cmd,
-        "password LINE",
-        "Assign the terminal connection password\n"
-        "The UNENCRYPTED (cleartext) line password\n")
+        "The password string\n")
 {
   return CMD_SUCCESS;
 }
@@ -2466,22 +2456,11 @@ DEFUNSH (VTYSH_ALL,
 DEFUNSH (VTYSH_ALL,
         vtysh_config_enable_password,
         vtysh_enable_password_cmd,
-        "enable password (8-8) WORD",
+        "enable password [(8-8)] LINE",
         "Modify enable password parameters\n"
         "Assign the privileged level password\n"
         "Specifies a HIDDEN password will follow\n"
-        "The HIDDEN 'enable' password string\n")
-{
-  return CMD_SUCCESS;
-}
-
-DEFUNSH (VTYSH_ALL,
-        vtysh_enable_password_text,
-        vtysh_enable_password_text_cmd,
-        "enable password LINE",
-        "Modify enable password parameters\n"
-        "Assign the privileged level password\n"
-        "The UNENCRYPTED (cleartext) 'enable' password\n")
+        "The 'enable' password string\n")
 {
   return CMD_SUCCESS;
 }
@@ -3630,8 +3609,6 @@ vtysh_init_vty (void)
   install_element (CONFIG_NODE, &no_vtysh_service_password_encrypt_cmd);
 
   install_element (CONFIG_NODE, &vtysh_password_cmd);
-  install_element (CONFIG_NODE, &vtysh_password_text_cmd);
   install_element (CONFIG_NODE, &vtysh_enable_password_cmd);
-  install_element (CONFIG_NODE, &vtysh_enable_password_text_cmd);
   install_element (CONFIG_NODE, &no_vtysh_enable_password_cmd);
 }