Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: fix ipv4-mapped ipv6 on non 6pe
0325116 ("bgpd: fix 6vpe nexthop") enforced sending an IPv4-mapped IPv6 address as nexthop when the BGP session is on IPv4 and address family IPv6. This is not always correct. In some cases, sending an IPv6 global address is valid on an IPv4 session: - MP-BGP is used and the sending router has an IPv4 and a global IPv6 address on the interface towards the peer. - nexthop is set by a route-map - router that is sending the UPDATE is a route-reflector IPv4-mapped IPv6 nexthop should be limited to the 6PE /6vPE cases where the prefix is reachable via an IPv4 only MPLS backbone. Do not replace the global IPv6 address when sending UPDATE if: - the nexthop is set by a route-map - a valid global IPv6 address is set on the interface towards the peer. The 6PE router is not supposed to have a global IPv6 address set on the interface. An IPv6 link-local may be set on it. - the sending router is a route-reflector Fixes: 0325116 ("bgpd: fix 6vpe nexthop") Signed-off-by: Louis Scalbert <[email protected]>
- Loading branch information