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

addons: vxlan: fix compare between remote-ips and old_remote_ips

fix regression from
35a4278ffb

remote-ips can be None (with evpn for example) but old_remote_ips is an empty list.
So the condition is always matching
This commit is contained in:
Alexandre Derumier
2023-11-20 13:42:40 +01:00
parent 2dd6ab123d
commit 08f8a21577

View File

@ -1244,7 +1244,7 @@ class vxlan(Vxlan, moduleBase):
# purge any removed remote ip # purge any removed remote ip
old_remoteips = self.get_old_remote_ips(ifaceobj.name) old_remoteips = self.get_old_remote_ips(ifaceobj.name)
if vxlan_purge_remotes or remoteips or (remoteips != old_remoteips): if vxlan_purge_remotes or (isinstance(remoteips,list) and remoteips != old_remoteips):
# figure out the diff for remotes and do the bridge fdb updates # figure out the diff for remotes and do the bridge fdb updates
# only if provisioned by user and not by an vxlan external # only if provisioned by user and not by an vxlan external
# controller. # controller.