aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/ims/orchestra_openims.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/vnf/ims/orchestra_openims.py')
-rw-r--r--functest/opnfv_tests/vnf/ims/orchestra_openims.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/opnfv_tests/vnf/ims/orchestra_openims.py b/functest/opnfv_tests/vnf/ims/orchestra_openims.py
index 8f209d5cf..5615b6ac7 100644
--- a/functest/opnfv_tests/vnf/ims/orchestra_openims.py
+++ b/functest/opnfv_tests/vnf/ims/orchestra_openims.py
@@ -19,6 +19,7 @@ import yaml
from functest.core import vnf
from functest.utils import config
+from functest.utils import env
from org.openbaton.cli.errors.errors import NfvoException
from org.openbaton.cli.agents.agents import MainAgent
@@ -300,7 +301,8 @@ class OpenImsVnf(vnf.VnfOnBoarding):
"Creating network/subnet/router if they doen't exist yet...")
subnet_settings = SubnetConfig(
name='{}_subnet-{}'.format(self.case_name, self.uuid),
- cidr="192.168.100.0/24")
+ cidr="192.168.100.0/24",
+ dns_nameservers=[env.get('NAMESERVER')])
network_settings = NetworkConfig(
name='{}_net-{}'.format(self.case_name, self.uuid),
subnet_settings=[subnet_settings])