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
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 145dcf1..1109bc8 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -94,6 +94,10 @@
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,