Use logical_port instead of name for port binding (localnet) entries

Closes-Bug: #2018720
Change-Id: Ibf39c1f879e45fd93d6da9e8fdb0aa8097ffcfa0
This commit is contained in:
Luis Tomas Bolivar 2023-05-08 11:24:33 +02:00
parent 246567c2aa
commit adf6609c86

View File

@ -265,7 +265,7 @@ class OvsdbSbOvnIdl(sb_impl_idl.OvnSbApiIdlImpl, Backend):
('type', '=',
constants.OVN_LOCALNET_VIF_PORT_TYPE))
localnet_info = cmd.execute(check_error=True)
return localnet_info[0].name if localnet_info else []
return localnet_info[0].logical_port if localnet_info else []
except ValueError:
# Datapath has been removed.
raise exceptions.DatapathNotFound(datapath=datapath)