]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: bugfix: vpn-vrf leak: set origin bgp to origin vrf for vrf-vpn-vrf 2104/head
authorG. Paul Ziemba <paulz@labn.net>
Sun, 22 Apr 2018 03:04:29 +0000 (20:04 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Sun, 22 Apr 2018 03:05:16 +0000 (20:05 -0700)
commitd6632478a4b47dc2aaca473a91c2168e9a29a9a0
tree70c43427dde16ecba4e9857874720fdadbc885d6
parent8aeee10fe217316ca3cdb6423169b2efc413762a
bgpd: bugfix: vpn-vrf leak: set origin bgp to origin vrf for vrf-vpn-vrf

bgp route extra->bgp_orig for routes leaked vpn->vrf should be set
to original extra->bgp_orig if it is set, not vpn's bgp instance.

The initial leak is OK because it goes through a loopback path
in the vrf->vpn leaking code, but it is possible later re-leaks (e.g.,
if the destination vrf's leak configuration is changed) could
set the wrong extra->bgp_orig and break the route's nexthop.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
bgpd/bgp_mplsvpn.c