]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Use the routes vrf not the vrf of the nexthop for route-map application
authorDonald Sharp <sharpd@nvidia.com>
Mon, 28 Feb 2022 18:08:01 +0000 (13:08 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 28 Feb 2022 18:08:01 +0000 (13:08 -0500)
commit45dafca86cf68e7351be997351f2b1da623401a6
treeb1c407da9ff889e7c9e3c0a0b459cae05e6c70c1
parentee95029ac41e1d3328e1409dcec477717a24a6f7
zebra: Use the routes vrf not the vrf of the nexthop for route-map application

When a end operator is doing cross vrf imports in bgp:

router bgp 3239 vrf FOO
  address-family ipv4 uni
    import vrf BAR
!

and zebra has this configuration:

vrf FOO
  ip protocol bgp route-map EVA
!

The current code in zebra_nhg.c was looking up the vrf of the
nexthop and attempting to apply the ip protocol route-map.

For most people the nexthop vrf and the re vrf are one and the
same so they never see a problem.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_nhg.c