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:
Jakub Libosvar 2024-10-02 11:12:03 -04:00
parent b04a42a31e
commit 27e94ee4af

@ -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))