Make ovs functional tests mutually isolated

Patch ports between br-int and br-tun have now got
randomly generated names so two different tests
shouldn't try to create ports with same name in same time.

Change-Id: I6107bc3bc2e2a504e8ec5b4f0e3abaa68d51c01f
Closes-Bug: #1625724
This commit is contained in:
Sławek Kapłoński 2016-10-15 20:03:45 +00:00
parent 0871aaa39a
commit ca62e7ec9d
1 changed files with 4 additions and 2 deletions

View File

@ -346,8 +346,10 @@ class OVSFlowTestCase(OVSAgentTestBase):
self.br_tun.set_secure_mode()
self.br_tun.setup_controllers(cfg.CONF)
self.tun_p = self.br_tun.add_patch_port(
cfg.CONF.OVS.tun_peer_patch_port,
cfg.CONF.OVS.int_peer_patch_port)
common_utils.get_rand_device_name(
prefix=cfg.CONF.OVS.tun_peer_patch_port),
common_utils.get_rand_device_name(
prefix=cfg.CONF.OVS.int_peer_patch_port))
self.br_tun.setup_default_table(self.tun_p, True)
def test_provision_local_vlan(self):