Merge "[FT] Check "Port_Binding" register exists before checking type"

This commit is contained in:
Zuul 2024-03-06 12:25:42 +00:00 committed by Gerrit Code Review
commit c6b9106784
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,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)