]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: evpn disable remove l2vni from l3vni list
authorChirag Shah <chirag@nvidia.com>
Sat, 19 Feb 2022 00:18:16 +0000 (16:18 -0800)
committerChirag Shah <chirag@nvidia.com>
Fri, 11 Mar 2022 03:59:33 +0000 (19:59 -0800)
commitb27be4dbd70022d496d5e1031d0c2d3d36f4fabe
treef114f05a045e1fee781e112de0bb22ecd9a7222e
parent37a9cb28abde961ef1016ee0d3afa6323734e13b
zebra: evpn disable remove l2vni from l3vni list

Upon 'no advertise-all-vni', cleanup l2vni from
its tenant-vrf's l3vni list, instead of passed
zvrf->l3vni which will not be present in case
of default instance.

Reviewed By:
Testing Done:
Before Fix:
----------
TORC12(config-router-af)# advertise-all-vni
TORC12(config-router-af)# end
TORC12# show evpn vni 4001
VNI: 4001
  Type: L3
  Tenant VRF: vrf1
  Vxlan-Intf: vni4001
  State: Up
  Router MAC: 44:38:39:ff:ff:01
  L2 VNIs: 134217728 0 1000 1002 <-----

After Fix:
----------
TORC12# show evpn vni 4001
VNI: 4001
  Type: L3
  Tenant VRF: vrf1
  Vxlan-Intf: vni4001
  State: Up
  Router MAC: 44:38:39:ff:ff:01
  L2 VNIs: 1000 1002

Signed-off-by: Chirag Shah <chirag@nvidia.com>
zebra/zebra_vxlan.c