mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
bgpd: Allow old vpnv4 commands to compile
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
46854ac0ae
commit
fcc65b0ff4
|
@ -773,25 +773,6 @@ bgp_show_mpls_vpn (struct vty *vty, afi_t afi, struct prefix_rd *prd,
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KEEP_OLD_VPN_COMMANDS
|
|
||||||
DEFUN (show_ip_bgp_vpn_all,
|
|
||||||
show_ip_bgp_vpn_all_cmd,
|
|
||||||
"show [ip] bgp <vpnv4|vpnv6>",
|
|
||||||
SHOW_STR
|
|
||||||
IP_STR
|
|
||||||
BGP_STR
|
|
||||||
BGP_VPNVX_HELP_STR)
|
|
||||||
{
|
|
||||||
afi_t afi;
|
|
||||||
int idx = 0;
|
|
||||||
|
|
||||||
if (argv_find_and_parse_vpnvx (argv, argc, &idx, &afi))
|
|
||||||
return bgp_show_mpls_vpn (vty, afi, NULL, bgp_show_type_normal, NULL, 0, 0);
|
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DEFUN (show_bgp_ip_vpn_all_rd,
|
DEFUN (show_bgp_ip_vpn_all_rd,
|
||||||
show_bgp_ip_vpn_all_rd_cmd,
|
show_bgp_ip_vpn_all_rd_cmd,
|
||||||
"show bgp "BGP_AFI_CMD_STR" vpn all [rd ASN:nn_or_IP-address:nn] [json]",
|
"show bgp "BGP_AFI_CMD_STR" vpn all [rd ASN:nn_or_IP-address:nn] [json]",
|
||||||
|
|
|
@ -294,7 +294,7 @@ AC_ARG_ENABLE(rr-semantics,
|
||||||
AC_ARG_ENABLE([protobuf],
|
AC_ARG_ENABLE([protobuf],
|
||||||
AS_HELP_STRING([--enable-protobuf], [Enable experimental protobuf support]))
|
AS_HELP_STRING([--enable-protobuf], [Enable experimental protobuf support]))
|
||||||
AC_ARG_ENABLE([oldvpn_commands],
|
AC_ARG_ENABLE([oldvpn_commands],
|
||||||
AS_HELP_STRING([--enable-old-vpn-commands], [Keep old vpn commands]))
|
AS_HELP_STRING([--enable-oldvpn-commands], [Keep old vpn commands]))
|
||||||
|
|
||||||
AC_CHECK_HEADERS(json-c/json.h)
|
AC_CHECK_HEADERS(json-c/json.h)
|
||||||
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
|
AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
|
||||||
|
@ -406,7 +406,7 @@ fi
|
||||||
#
|
#
|
||||||
# Logic for old vpn commans support.
|
# Logic for old vpn commans support.
|
||||||
#
|
#
|
||||||
if test "$enable_old_vpn_commands" = "yes"; then
|
if test "$enable_oldvpn_commands" = "yes"; then
|
||||||
AC_DEFINE(KEEP_OLD_VPN_COMMANDS,, [Define for compiling with old vpn commands])
|
AC_DEFINE(KEEP_OLD_VPN_COMMANDS,, [Define for compiling with old vpn commands])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue