diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2022-03-15 12:32:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-15 12:32:22 -0700 |
| commit | 3d58538a755719b525ee71bd313f0b0dc20717cc (patch) | |
| tree | d27871c660d3c169e7e7a516e57071e98323f1e8 /zebra/zebra_vxlan.c | |
| parent | 2ea93eb0235d697a0ee190d923e5cec50051203d (diff) | |
| parent | b27be4dbd70022d496d5e1031d0c2d3d36f4fabe (diff) | |
Merge pull request #10770 from chiragshah6/evpn_dev3
zebra: evpn disable remove l2vni from l3vni list
Diffstat (limited to 'zebra/zebra_vxlan.c')
| -rw-r--r-- | zebra/zebra_vxlan.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 676b92d429..6a3b1bfbe3 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -1068,13 +1068,11 @@ static void zebra_evpn_vxlan_cleanup_all(struct hash_bucket *bucket, void *arg) { struct zebra_evpn *zevpn = NULL; struct zebra_l3vni *zl3vni = NULL; - struct zebra_vrf *zvrf = (struct zebra_vrf *)arg; zevpn = (struct zebra_evpn *)bucket->data; - /* remove from l3-vni list */ - if (zvrf->l3vni) - zl3vni = zl3vni_lookup(zvrf->l3vni); + /* remove l2vni from l2vni's tenant-vrf l3-vni list */ + zl3vni = zl3vni_from_vrf(zevpn->vrf_id); if (zl3vni) listnode_delete(zl3vni->l2vnis, zevpn); |
