in the case of ifreload bridge.py:get_dependent is entered twice,
once for the old ifaceobjs and once for the new ones. Thus adding
bridges twice to the list. Having a set will prevent this issue.
Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifaceobj.link_privflags |= ifaceLinkPrivFlags.BRIDGE_VLAN_AWARE
# store the name of all bridge vlan aware in a global list
- self.bridge_vlan_aware_list.append(ifaceobj.name)
+ self.bridge_vlan_aware_list.add(ifaceobj.name)
ifaceobj.role |= ifaceRole.MASTER
ifaceobj.dependency_type = ifaceDependencyType.MASTER_SLAVE
class Bridge(Addon):
- bridge_vlan_aware_list = []
+ bridge_vlan_aware_list = set()
def __init__(self):
super(Bridge, self).__init__()