summaryrefslogtreecommitdiff
path: root/lib/xref.h
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2022-02-14 14:18:10 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2022-12-15 17:09:35 +0100
commitac2f64d3ec2fe63d3d1ba13f5c297cd70aed4364 (patch)
tree03dd6134f459f8b1d110d5f15d5861b432396e66 /lib/xref.h
parentdaa256700250ec0b4693f8820c7188123c2e0752 (diff)
bgpd: fix the IGP metric for best path selection on VPN import
Since the commit da0c0ef70c ("bgpd: VRF-Lite fix best path selection"), the best path selection is made from the comparison of the attributes of the original route i.e. the ultimate path. The IGP metric is currently set on the child path instead of the ultimate path (i.e. the parent path). On eBGP, the ultimate path is the child path. However, for imported routes, the ultimate path is always set to 0, which results in skipping the IGP metric comparison when selecting the best path. Set the IGP metric on the ultimate path when a BGP nexthop is added or updated. Fixes: da0c0ef70c ("bgpd: VRF-Lite fix best path selection") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/xref.h')
0 files changed, 0 insertions, 0 deletions