From: Donald Sharp Date: Sun, 22 Jan 2017 16:01:09 +0000 (-0500) Subject: bgpd: Fix function used only within KEEP_OLD_VPN_COMMANDS X-Git-Tag: frr-3.0-branchpoint~71^2^2~16 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9dd6d53149ab54c5960eb1b5f4d4248cbbc41853;p=mirror%2Ffrr.git bgpd: Fix function used only within KEEP_OLD_VPN_COMMANDS The show_adj_route_vpn function is only currently used in conjunction with the KEEP_OLD_VPN_COMMANDS #define. Add this function to that define for the moment. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index bfbddb6c30..dd25fdfaf4 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -566,6 +566,7 @@ DEFUN (no_vpnv6_network, return bgp_static_unset_safi (SAFI_MPLS_VPN, vty, argv[idx_ipv6_prefix]->arg, argv[idx_ext_community]->arg, argv[idx_word]->arg); } +#if defined(KEEP_OLD_VPN_COMMANDS) static int show_adj_route_vpn (struct vty *vty, struct peer *peer, struct prefix_rd *prd, u_char use_json, afi_t afi) { @@ -732,6 +733,7 @@ show_adj_route_vpn (struct vty *vty, struct peer *peer, struct prefix_rd *prd, u } return CMD_SUCCESS; } +#endif enum bgp_show_type {