Browse Source

add_fake_chassis() may need to create a Chassis_Private

If the Chassis_Private table exists in the schema, add_fake_chassis
will need to create it since we aren't running ovn-controller.

Closes-Bug: #1914754

Manually cherry-picked from
https://review.opendev.org/c/openstack/neutron/+/774298/1

Change-Id: Ie9ce03ddaa76a30a6ca226ee4808a3005b441e99
changes/06/786206/4
Rodolfo Alonso Hernandez 3 months ago
committed by Rodolfo Alonso
parent
commit
626afcd91b
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      networking_ovn/tests/functional/base.py

+ 5
- 1
networking_ovn/tests/functional/base.py View File

@ -295,9 +295,13 @@ class TestOVNFunctionalBase(test_plugin.Ml2PluginV2TestCase):
# fake chassis but from the SB db point of view, 'ip' column can be
# any string so we could add entries with ip='172.24.4.1000'.
self._counter += 1
self.sb_api.chassis_add(
chassis = self.sb_api.chassis_add(
name, ['geneve'], '172.24.4.%d' % self._counter,
external_ids=external_ids, hostname=host).execute(check_error=True)
if self.sb_api.is_table_present('Chassis_Private'):
self.sb_api.db_create(
'Chassis_Private', name=name, external_ids=external_ids,
chassis=chassis.uuid).execute(check_error=True)
return name
def del_fake_chassis(self, chassis, if_exists=True):


Loading…
Cancel
Save