diff --git a/bgpd/bgp_conditional_adv.c b/bgpd/bgp_conditional_adv.c index b5cd1b52b7..6755def8bc 100644 --- a/bgpd/bgp_conditional_adv.c +++ b/bgpd/bgp_conditional_adv.c @@ -19,8 +19,7 @@ */ #include "bgpd/bgp_conditional_adv.h" - -const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json); +#include "bgpd/bgp_vty.h" static route_map_result_t bgp_check_rmap_prefixes_in_bgp_table(struct bgp_table *table, diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index 94a27ead0e..f46d416c3c 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -35,8 +35,7 @@ #include "bgpd/bgp_route.h" #include "bgpd/bgp_attr.h" #include "bgpd/bgp_advertise.h" - -const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json); +#include "bgpd/bgp_vty.h" /* Global variable to access damping configuration */ static struct bgp_damp_config damp[AFI_MAX][SAFI_MAX]; diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index ce665feb4e..a4d17cac40 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -55,10 +55,11 @@ #include "bgpd/bgp_keepalives.h" #include "bgpd/bgp_io.h" #include "bgpd/bgp_zebra.h" +#include "bgpd/bgp_vty.h" DEFINE_HOOK(peer_backward_transition, (struct peer * peer), (peer)) DEFINE_HOOK(peer_status_changed, (struct peer * peer), (peer)) -extern const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json); + /* Definition of display strings corresponding to FSM events. This should be * kept consistent with the events defined in bgpd.h */ diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 87e03d205f..22c576d90f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -96,7 +96,7 @@ /* Extern from bgp_dump.c */ extern const char *bgp_origin_str[]; extern const char *bgp_origin_long_str[]; -const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json); + /* PMSI strings. */ #define PMSI_TNLTYPE_STR_NO_INFO "No info" #define PMSI_TNLTYPE_STR_DEFAULT PMSI_TNLTYPE_STR_NO_INFO