Skip to content

Commit

Permalink
[neighbor advertiser] convert int to string before concatenating (son…
Browse files Browse the repository at this point in the history
…ic-net#505)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca authored Apr 9, 2019
1 parent 6ee0aea commit eb63da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/neighbor_advertiser
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def add_vxlan_tunnel_map():
'vlan': get_vlan_interface_vlan_id(vlan_intf_name)
}

config_db.set_entry('VXLAN_TUNNEL_MAP', (VXLAN_TUNNEL_NAME, VXLAN_TUNNEL_MAP_PREFIX + index), vxlan_tunnel_map_info)
config_db.set_entry('VXLAN_TUNNEL_MAP', (VXLAN_TUNNEL_NAME, VXLAN_TUNNEL_MAP_PREFIX + str(index)), vxlan_tunnel_map_info)


def set_vxlan_tunnel(ferret_server_ip):
Expand All @@ -376,7 +376,7 @@ def remove_vxlan_tunnel():

def remove_vxlan_tunnel_map():
for (index, vlan_intf_name) in enumerate(get_vlan_interfaces(), 1):
config_db.set_entry('VXLAN_TUNNEL_MAP', (VXLAN_TUNNEL_NAME, VXLAN_TUNNEL_MAP_PREFIX + 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 eb63da8

Please sign in to comment.