]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix missing tenant vrf change notification 11888/head
authoranlan_cs <vic.lan@pica8.com>
Wed, 31 Aug 2022 14:24:19 +0000 (10:24 -0400)
committeranlan_cs <vic.lan@pica8.com>
Thu, 1 Sep 2022 07:08:16 +0000 (03:08 -0400)
commita606d91561c7cd58fad88f33892d2ea8000620dc
treec2c66de61e7b7efe4ba4ec9d311f1a8decfcb1ff
parentf1f38efd836af248d362d961224a540d07bd50cf
zebra: fix missing tenant vrf change notification

zebra can change l2vni's tenant vrf with new `vid`, and then notify bgpd
to change also. But this notification is wrongly missed, so bgpd knows
nothing about it. It affects evpn routes, which are related to tenant vrf.
Need to notify bgpd of the `vid` change.

Changes l2vni 100 of vxlan's `vid` so as to change its svi interface from
default to vrf1, then check bgp's vni status.

Before: (Ignored irrelevent columns)
```
host#show bgp l2vpn evpn vni
  VNI      Type RD                    Tenant VRF
* 100      L2   66.66.66.66:2         default <- No change
```

After:(Ignored irrelevent columns)
```
host#show bgp l2vpn evpn vni
  VNI      Type RD                   Tenant VRF
* 100      L2   66.66.66.66:2        vrf1 <- Updated
```

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