]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: associate appropriate family for redistributed connected addresses
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 18 Aug 2022 15:22:33 +0000 (17:22 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 5 Sep 2022 20:26:33 +0000 (22:26 +0200)
commit6fc4929e095fb3119f05e544a6b623104ef1c509
tree796636bc393a461eb8f15fb542fe406214c955d5
parentb244203fcc06772fdd6b762380b97476753b353b
bgpd: associate appropriate family for redistributed connected addresses

When redistributing connected addresses, the address family has
to be figured out. The calculation was not done, the next-hop
address length was not set, and as consequence, the nexthop
is displayed like if it was an ipv6 address, which is wrong for
ipv4 addresses.

Calculate the family for connected addresses.
Change the topotests accordingly.

Fixes: ("7226bc40d606") bgpd: ignore NEXT_HOP for MP_REACH_NLRI
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c
tests/topotests/bgp_vpnv4_ebgp/r2/bgp_ipv4_routes.json
tests/topotests/bgp_vpnv4_gre/r2/bgp_ipv4_routes.json