]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib,bgpd,vtysh: move bgp vty defines to lib 15833/head
authorMark Stapp <mjs@cisco.com>
Wed, 24 Apr 2024 12:23:12 +0000 (08:23 -0400)
committerMark Stapp <mjs@cisco.com>
Wed, 24 Apr 2024 12:23:12 +0000 (08:23 -0400)
Stop including a bgp header file from vtysh; move a couple
of cli string defines to a library header.

Signed-off-by: Mark Stapp <mjs@cisco.com>
bgpd/bgp_vty.h
lib/command.h
vtysh/vtysh.c

index 4955e4c3df4ae27cd2d457efaf44e29be1e30587..addd71757d47842f62caa5b1a5e50f858c862c95 100644 (file)
@@ -13,8 +13,6 @@ struct bgp;
 #define BGP_INSTANCE_HELP_STR "BGP view\nBGP VRF\nView/VRF name\n"
 #define BGP_INSTANCE_ALL_HELP_STR "BGP view\nBGP VRF\nAll Views/VRFs\n"
 
-#define BGP_AF_STR "Address Family\n"
-#define BGP_AF_MODIFIER_STR "Address Family modifier\n"
 #define BGP_AFI_CMD_STR         "<ipv4|ipv6>"
 #define BGP_AFI_HELP_STR BGP_AF_STR BGP_AF_STR
 #define BGP_SAFI_CMD_STR        "<unicast|multicast|vpn>"
index ef1815c0bd51b148023a0f7bbb60a1380d697053..e4c575e8d787b889bda9ec1604738c97cb89b4f8 100644 (file)
@@ -462,6 +462,8 @@ struct cmd_node {
 #define MPLS_LDP_SYNC_HOLDDOWN_STR                                             \
        "Time to wait for LDP-SYNC to occur before restoring if cost\n"
 #define NO_MPLS_LDP_SYNC_HOLDDOWN_STR "holddown timer disable\n"
+#define BGP_AF_STR "Address Family\n"
+#define BGP_AF_MODIFIER_STR "Address Family modifier\n"
 
 /* Command warnings. */
 #define NO_PASSWD_CMD_WARNING                                                  \
index e03d1464d3561bd8739f060a6ff91fdda13622de..1a358017dc5533449cffcaea05e8ded1056d6194 100644 (file)
@@ -39,7 +39,6 @@
 #include "frrstr.h"
 #include "json.h"
 #include "ferr.h"
-#include "bgpd/bgp_vty.h"
 
 DEFINE_MTYPE_STATIC(MVTYSH, VTYSH_CMD, "Vtysh cmd copy");