]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: let /32 host route with same IP cross VRF
authoranlan_cs <vic.lan@pica8.com>
Mon, 31 Jan 2022 00:44:35 +0000 (19:44 -0500)
committeranlan_cs <vic.lan@pica8.com>
Tue, 8 Mar 2022 23:22:11 +0000 (07:22 +0800)
commit3f04f9cf241071882cdb55fbda1888f2dfd7e3aa
tree654246ddac05f9053923dbf1bc55743ee3877dde
parent5e5cd2784f23c5a022d1a0e3c6e9d217abc3ca71
zebra: let /32 host route with same IP cross VRF

Contraints of host routes are too strict in current code:
Host routes with same destination address and nexthop address are forbidden
even when cross VRFs.

Currently host routes with different destination and nexthop address can cross
VRFs, it is ok. But host routes with same addresses are forbidden to cross VRFs,
it is wrong.

Since different VRFs can have the same addresses, leak specific host route with
the same nexthop address ( it means destination address is same to nexthop
address ) to other VRFs is a normal case.

This commit relaxes that contraints. Host routes with same destination address
and nexthop address are forbidden only when not cross VRFs.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
zebra/zebra_nhg.c