]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: alias for bgp no shutdown cmd
authorDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 24 Aug 2020 16:16:49 +0000 (18:16 +0200)
committerDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 24 Aug 2020 16:16:49 +0000 (18:16 +0200)
* Reverted back to using an ALIAS definition for the negated bgp
  shutdown command with a concatenated message string.
* Unified cli command descriptions for bgp shutdown commands.

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
bgpd/bgp_vty.c

index db0a5820f3e6b146e8de29adf6a3f4b62fed90b9..f92d96b0ef252fe23a924cdcf9350bd0c71df066 100644 (file)
@@ -3602,7 +3602,7 @@ DEFUN (bgp_default_shutdown,
 
 DEFPY(bgp_shutdown_msg, bgp_shutdown_msg_cmd, "bgp shutdown message MSG...",
       BGP_STR
-      "Enable administrative shutdown of the BGP instance\n"
+      "Administrative shutdown of the BGP instance\n"
       "Add a shutdown message (RFC 8203)\n"
       "Shutdown message\n")
 {
@@ -3620,7 +3620,7 @@ DEFPY(bgp_shutdown_msg, bgp_shutdown_msg_cmd, "bgp shutdown message MSG...",
 }
 
 DEFPY(bgp_shutdown, bgp_shutdown_cmd, "bgp shutdown",
-      BGP_STR "Enable administrative shutdown of the BGP instance\n")
+      BGP_STR "Administrative shutdown of the BGP instance\n")
 {
        VTY_DECLVAR_CONTEXT(bgp, bgp);
 
@@ -3630,7 +3630,7 @@ DEFPY(bgp_shutdown, bgp_shutdown_cmd, "bgp shutdown",
 }
 
 DEFPY(no_bgp_shutdown, no_bgp_shutdown_cmd, "no bgp shutdown",
-      NO_STR BGP_STR "Remove administrative shutdown of the BGP instance\n")
+      NO_STR BGP_STR "Administrative shutdown of the BGP instance\n")
 {
        VTY_DECLVAR_CONTEXT(bgp, bgp);
 
@@ -3639,17 +3639,10 @@ DEFPY(no_bgp_shutdown, no_bgp_shutdown_cmd, "no bgp shutdown",
        return CMD_SUCCESS;
 }
 
-DEFPY(no_bgp_shutdown_msg, no_bgp_shutdown_msg_cmd,
+ALIAS(no_bgp_shutdown, no_bgp_shutdown_msg_cmd,
       "no bgp shutdown message MSG...", NO_STR BGP_STR
-      "Remove administrative shutdown of the BGP instance\n"
+      "Administrative shutdown of the BGP instance\n"
       "Add a shutdown message (RFC 8203)\n" "Shutdown message\n")
-{
-       VTY_DECLVAR_CONTEXT(bgp, bgp);
-
-       bgp_shutdown_disable(bgp);
-
-       return CMD_SUCCESS;
-}
 
 DEFUN (neighbor_remote_as,
        neighbor_remote_as_cmd,