summaryrefslogtreecommitdiff
path: root/tools/stringmangle.py
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2022-04-26 16:45:42 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2022-12-16 14:52:47 +0100
commit86a1c2963266fe5a0683278668c276c748f32552 (patch)
tree9bb106237a42f16d23c5389c62758a3e1322c3ef /tools/stringmangle.py
parent36c61d5c8b0e43558bc73fbaa85573ad58c82dca (diff)
bgpd: fix route recursion on leaked routes
Leaked recursive routes are not resolved. > VRF r1-cust1: > B> 5.1.0.0/24 [200/98] via 99.0.0.1 (recursive), weight 1, 00:00:08 > * via 192.168.1.2, r1-eth4, weight 1, 00:00:08 > B>* 99.0.0.1/32 [200/0] via 192.168.1.2, r1-eth4, weight 1, 00:00:08 > VRF r1-cust4: > B 5.1.0.0/24 [20/98] via 99.0.0.1 (vrf r1-cust1) inactive, weight 1, 00:00:08 > B>* 99.0.0.1/32 [20/0] via 192.168.1.2, r1-eth4 (vrf r1-cust1), weight 1, 00:00:08 When announcing the routes to zebra, use the peer of the ultimate bgp path info instead of the one of the first parent path info to determine whether the route is recursive. The result is: > VRF r1-cust4: > B> 5.1.0.0/24 [20/98] via 99.0.0.1 (vrf r1-cust1) (recursive), weight 1, 00:00:02 > * via 192.168.1.2, r1-eth4 (vrf r1-cust1), weight 1, 00:00:02 > B>* 99.0.0.1/32 [20/0] via 192.168.1.2, r1-eth4 (vrf r1-cust1), weight 1, 00:00:02 Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'tools/stringmangle.py')
0 files changed, 0 insertions, 0 deletions