From 530c678677cc314c159936fdf5e121e83fc1d0cc Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 5 Mar 2018 03:14:23 +0000 Subject: Add a new env var for nameserver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should still consider that the nameserver must be handled by all installers instead [1]: - by configuring one or more DNS resolvers in dhcp_agent.ini - by asking a local resolv It eases setting the nameserver in testcases and then allows gating them. 8.8.8.8 is still defined by default. [1] https://docs.openstack.org/neutron/pike/admin/config-dns-res.html Co-Authored-By: Cédric Ollivier Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416 Signed-off-by: Linda Wang Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py') diff --git a/functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py b/functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py index 7af609a71..37148c918 100644 --- a/functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py +++ b/functest/opnfv_tests/vnf/ims/cloudify_ims_perf.py @@ -38,6 +38,7 @@ from functest.opnfv_tests.vnf.ims.ixia.utils import IxChassisUtils from functest.opnfv_tests.vnf.ims.ixia.utils import IxLoadUtils from functest.opnfv_tests.vnf.ims.ixia.utils import IxRestUtils from functest.utils import config +from functest.utils import env __author__ = "Valentin Boucher " @@ -113,7 +114,8 @@ class CloudifyImsPerf(cloudify_ims.CloudifyIms): self.__logger.info("Creating full IXIA network ...") subnet_settings = SubnetConfig(name='ixia_management_subnet', - cidr='10.10.10.0/24') + cidr='10.10.10.0/24', + dns_nameservers=[env.get('NAMESERVER')]) network_settings = NetworkConfig(name='ixia_management_network', subnet_settings=[subnet_settings]) network_creator = OpenStackNetwork(self.snaps_creds, network_settings) -- cgit 1.2.3-korg