Skip to content

Commit

Permalink
[neighbor-advertiser] delete the tunnel maps appropriately (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumukhatv authored Jun 11, 2021
1 parent a425ca2 commit 3ff68c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/neighbor_advertiser
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,12 @@ def remove_vxlan_tunnel():


def remove_vxlan_tunnel_map():
vxlan_tunnel_name = VXLAN_TUNNEL_NAME
vxlan_tunnel = config_db.get_table('VXLAN_TUNNEL')
if len(vxlan_tunnel):
vxlan_tunnel_name = list(vxlan_tunnel.keys())[0]
for (index, _) in enumerate(get_vlan_interfaces(), 1):
config_db.set_entry('VXLAN_TUNNEL_MAP', (VXLAN_TUNNEL_NAME, VXLAN_TUNNEL_MAP_PREFIX + str(index)), None)
config_db.set_entry('VXLAN_TUNNEL_MAP', (vxlan_tunnel_name, VXLAN_TUNNEL_MAP_PREFIX + str(index)), None)


def reset_vxlan_tunnel():
Expand Down

0 comments on commit 3ff68c4

Please sign in to comment.