]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix missing vrf change of l2vni on vxlan interface
authoranlan_cs <vic.lan@pica8.com>
Thu, 31 Mar 2022 06:19:55 +0000 (02:19 -0400)
committeranlan_cs <vic.lan@pica8.com>
Thu, 31 Mar 2022 06:51:26 +0000 (02:51 -0400)
commitc4992a2f7177b1747321921f7bec3fe79a146e52
treeceee60822444d67e0f342bc8af612f62f94a9983
parent403715424069cbf831bd532c615d36d83e5c6c1c
zebra: fix missing vrf change of l2vni on vxlan interface

The bounded vrf of `l2vni/zevpn` have wrong relation with the order
in which vxlan interface and svi interface are set.

If set vxlan interface with vlanid first, then set svi interface with
vrf, it is ok that vxlan interface will get correct `vrf` inherited
from svi. But reverse the set sequence (i.e. set svi first, then vxlan),
vxlan interface can't get correct `vrf`, becasue the handling of
`ZEBRA_VXLIF_VLAN_CHANGE` missed inheritting `vrf` by mistake.

```
host# do show  evpn vni 101
VNI: 101
Type: L2
Tenant VRF: vrf1
```

So update `vrf` ("Tenant VRF") of l2vni in `zebra_vxlan_if_update()`.

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