diff options
| author | Chirag Shah <chirag@nvidia.com> | 2020-09-27 14:09:43 -0700 |
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2020-09-28 21:44:30 -0700 |
| commit | c7e83a4efe4b617d7e70f511da4661dff752173e (patch) | |
| tree | 913fd084ef7d6051c3a1a0fae2d95f14e65d5c2d /python/firstheader.py | |
| parent | 67b295d4149d138abcfbad03484014c76fc49c74 (diff) | |
zebra: avoid duplication node in l3vni l2vni-list
With l2vni flap leading to duplicate entry creation
in l3vni's l2vni-list.
Use list sorted add with no duplicates.
root@TORC11:mgmt:~# show evpn vni 4001
VNI: 4001
Type: L3
Tenant VRF: vrf1
State: Up
...
L2 VNIs: 1000 1000 1000 0 0 1002
root@TORC11:mgmt:~# ip link set down vx-1002
root@TORC11:mgmt:~# ip link set up vx-1002
root@TORC11:mgmt:~# show evpn vni 4001
VNI: 4001
Type: L3
Tenant VRF: vrf1
State: Up
...
L2 VNIs: 1000 1000 1000 0 0 1002 1002
Ticket:CM-31545
Reviewed By:
Testing Done:
With Fix:
Multiple time flaps vni counts remained the same.
root@TORC11:mgmt:~# ip link set down vx-1002
root@TORC11:mgmt:~# ip link set up vx-1002
root@TORC11:mgmt:~# ip link set down vx-1002
root@TORC11:mgmt:~# ip link set up vx-1002
root@TORC11:mgmt:~# net show evpn vni 4001
VNI: 4001
Type: L3
Tenant VRF: vrf1
State: Up
...
L2 VNIs: 1000 1002
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions
