Merge "Reduce number of routers created in ``test_gateway_chassis_rebalance``"

This commit is contained in:
Zuul 2023-02-27 16:44:04 +00:00 committed by Gerrit Code Review
commit f2093d98d7
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class WaitForCrLrpPortBindingEvent(event.RowEvent):
self.logical_port_events = collections.defaultdict(threading.Event)
self.timeout = timeout
super(WaitForCrLrpPortBindingEvent, self).__init__(
(self.ROW_CREATE,), 'Port_Binding', None)
(self.ROW_CREATE, self.ROW_UPDATE), 'Port_Binding', None)
def match_fn(self, event, row, old=None):
return row.logical_port.startswith(self.PREFIX)

View File

@ -541,9 +541,9 @@ class TestRouter(base.TestOVNFunctionalBase):
ext1 = self._create_ext_network(
'ext1', 'flat', 'physnet4', None, "30.0.0.1", "30.0.0.0/24")
gw_info = {'network_id': ext1['network']['id']}
# Tries to create 20 routers with a gateway. Since we're using
# Tries to create 5 routers with a gateway. Since we're using
# physnet4, the chassis candidates will be chassis4 initially.
num_routers = 20
num_routers = 5
for i in range(num_routers):
try:
router = self._create_router('router%d' % i, gw_info=gw_info)