Skip to content

Commit

Permalink
Merge pull request #16743 from lsang6WIND/vpn_leak_label
Browse files Browse the repository at this point in the history
bgpd: remove redundant loopback check in label update
  • Loading branch information
ton31337 authored Sep 4, 2024
2 parents 3ae49f7 + d173522 commit 4f185c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_mplsvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void vpn_leak_zebra_vrf_label_update(struct bgp *bgp, afi_t afi)

if (vpn_leak_to_vpn_active(bgp, afi, NULL, false)) {
ifp = if_get_vrf_loopback(bgp->vrf_id);
if (ifp && if_is_vrf(ifp) && if_is_up(ifp))
if (ifp && if_is_up(ifp))
label = bgp->vpn_policy[afi].tovpn_label;
}

Expand Down

0 comments on commit 4f185c5

Please sign in to comment.