bgpd: Print the actual prefix when we try to import in vpn_leak_to_vrf_update

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2024-12-08 21:48:14 +02:00
parent 222ba5f390
commit 3d89c67889

View File

@ -2517,11 +2517,12 @@ void vpn_leak_to_vrf_update(struct bgp *from_bgp,
{
struct listnode *mnode, *mnnode;
struct bgp *bgp;
const struct prefix *p = bgp_dest_get_prefix(path_vpn->net);
int debug = BGP_DEBUG(vpn, VPN_LEAK_TO_VRF);
if (debug)
zlog_debug("%s: start (path_vpn=%p)", __func__, path_vpn);
zlog_debug("%s: start (path_vpn=%p, prefix=%pFX)", __func__, path_vpn, p);
/* Loop over VRFs */
for (ALL_LIST_ELEMENTS(bm->bgp, mnode, mnnode, bgp)) {