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 46abd9b503e6949258e48aaf23c050d42fc7442c)
This commit is contained in:
parent
3b6834d9e9
commit
4e364b0ded
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user