Merge "[FT] Check "Port_Binding" register exists before checking type" into stable/2023.2

This commit is contained in:
Zuul 2024-12-02 17:39:03 +00:00 committed by Gerrit Code Review
commit 383bb41ccf

View File

@ -333,6 +333,8 @@ class TestNBDbMonitor(base.TestOVNFunctionalBase):
def _check_port_binding_type(self, port_id, port_type):
def is_port_binding_type(port_id, port_type):
bp = self._find_port_binding(port_id)
if not bp:
return False
return port_type == bp.type
check = functools.partial(is_port_binding_type, port_id, port_type)