]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
addons: vxlan: remove vxlan-local-tunnel-ip from bridge fdb add list
authorJulien Fortin <julien@cumulusnetworks.com>
Tue, 29 Nov 2016 00:43:14 +0000 (01:43 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Tue, 29 Nov 2016 00:43:14 +0000 (01:43 +0100)
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>
addons/vxlan.py

index 54e16326fdcc2b4c5a03ef7e976daf3216bd4a67..fc8528a109633d44ca0f1e420d870e8e0bab5dab 100644 (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)