Fix test_add_external_port_avoid_flapping

The condition check for a logical port being down should be
"up != True" not "up == False".

Closes-bug: #2126685
Change-Id: I1a4c4d6883802825cb8bf6b136581accb784b154
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
This commit is contained in:
Brian Haley
2025-10-08 20:29:48 -04:00
parent df4b70b71f
commit 6a5201d4c0

View File

@@ -766,7 +766,7 @@ class TestExternalPorts(base.TestOVNFunctionalBase):
events = (self.ROW_UPDATE,)
super().__init__(
events, table, (('up', '=', True),),
old_conditions=(('up', '=', False),))
old_conditions=(('up', '!=', True),))
def run(self, event, row, old):
self.count += 1
@@ -780,7 +780,7 @@ class TestExternalPorts(base.TestOVNFunctionalBase):
table = 'Logical_Switch_Port'
events = (self.ROW_UPDATE,)
super().__init__(
events, table, (('up', '=', False),),
events, table, (('up', '!=', True),),
old_conditions=(('up', '=', True),))
def run(self, event, row, old):