Make in_port consistent type
The in_port structure is always list but in case there is a failure when
obtaining the list of ports on the bridge, it was set to a set type.
This patch initializes it as a list.
TrivialFix
Change-Id: Iec62246f730b9aa80d4145b357da49612b850243
(cherry picked from commit 46abd9b503)
This commit is contained in:
@@ -177,7 +177,7 @@ class OVNBGPDriver(driver_api.AgentDriverBase):
|
||||
mac = linux_net.get_interface_address(bridge)
|
||||
self.ovs_flows[bridge] = {
|
||||
'mac': mac,
|
||||
'in_port': set([])}
|
||||
'in_port': []}
|
||||
# 3) Get in_port for bridge mappings (br-ex, br-ex2)
|
||||
self.ovs_flows[bridge]['in_port'] = (
|
||||
ovs.get_ovs_patch_ports_info(bridge))
|
||||
|
||||
Reference in New Issue
Block a user