1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vxlan: remove vxlan-local-tunnel-ip from bridge fdb add list

Ticket: None
Reviewed By: Roopa
Testing Done:

This was discover while working on CM-13767 and some other vxlan issues

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2016-11-29 01:43:14 +01:00
parent 88d946862f
commit 3ee939c3fa

View File

@ -95,7 +95,10 @@ class vxlan(moduleBase):
remoteips = ifaceobj.get_attr_value('vxlan-remoteip')
# figure out the diff for remotes and do the bridge fdb updates
# only if provisioned by user and not by vxrd
cur_peers = set(self.ipcmd.get_vxlan_peers(ifaceobj.name, group))
peers = self.ipcmd.get_vxlan_peers(ifaceobj.name, group)
if local:
peers.append(local)
cur_peers = set(peers)
if remoteips:
new_peers = set(remoteips)
del_list = cur_peers.difference(new_peers)