Skip to content

Commit

Permalink
Merge pull request FRRouting#12643 from opensourcerouting/fix/cosmeti…
Browse files Browse the repository at this point in the history
…c_log_changes

bgpd: Drop redundant `vrf` keyword in BGP debug log changes
  • Loading branch information
riw777 authored Jan 17, 2023
2 parents 6664d74 + b2a100e commit 775ce08
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bgpd/bgp_mplsvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,9 +1097,8 @@ static bool leak_update_nexthop_valid(struct bgp *to_bgp, struct bgp_dest *bn,
}

if (debug)
zlog_debug("%s: %pFX nexthop is %svalid (in vrf %s)", __func__,
p, (nh_valid ? "" : "not "),
bgp_nexthop->name_pretty);
zlog_debug("%s: %pFX nexthop is %svalid (in %s)", __func__, p,
(nh_valid ? "" : "not "), bgp_nexthop->name_pretty);

return nh_valid;
}
Expand Down Expand Up @@ -1919,8 +1918,8 @@ static bool vpn_leak_to_vrf_update_onevrf(struct bgp *to_bgp, /* to */
}

if (debug)
zlog_debug("%s: updating RD %pRD, %pFX to vrf %s", __func__,
prd, p, to_bgp->name_pretty);
zlog_debug("%s: updating RD %pRD, %pFX to %s", __func__, prd, p,
to_bgp->name_pretty);

/* shallow copy */
static_attr = *path_vpn->attr;
Expand Down

0 comments on commit 775ce08

Please sign in to comment.