Create port with port_vnic_type and port_profile from config
modify create_port function to use tempest.conf parameters, 'port_vnic_type' and 'port_profile' in case they are defined. Change-Id: Id7e4e3c7543498c84d815dccf16dc168d45b6a62
This commit is contained in:
parent
de5f0da10e
commit
408a97b1a3
|
@ -94,6 +94,10 @@ class ScenarioTest(tempest.test.BaseTestCase):
|
|||
if not client:
|
||||
client = self.ports_client
|
||||
name = data_utils.rand_name(self.__class__.__name__)
|
||||
if CONF.network.port_vnic_type and 'binding:vnic_type' not in kwargs:
|
||||
kwargs['binding:vnic_type'] = CONF.network.port_vnic_type
|
||||
if CONF.network.port_profile and 'binding:profile' not in kwargs:
|
||||
kwargs['binding:profile'] = CONF.network.port_profile
|
||||
result = client.create_port(
|
||||
name=name,
|
||||
network_id=network_id,
|
||||
|
|
Loading…
Reference in New Issue