Skip to content

Commit

Permalink
bgpd: Print the actual prefix when we try to import in vpn_leak_to_vr…
Browse files Browse the repository at this point in the history
…f_update

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
ton31337 committed Dec 8, 2024
1 parent 222ba5f commit 3d89c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgpd/bgp_mplsvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3d89c67

Please sign in to comment.