Enabling DNS server assignment in entwork settings 93/14893/5
authorDan Radez <dradez@redhat.com>
Tue, 31 May 2016 16:34:15 +0000 (12:34 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 8 Jun 2016 13:18:22 +0000 (09:18 -0400)
Change-Id: Ibb30129ca52392cd152b6af61e0545ba47153bda
Signed-off-by: Dan Radez <dradez@redhat.com>
config/network/network_settings.yaml
lib/python/apex/network_environment.py

index 88bb3b5..5614c64 100644 (file)
@@ -19,6 +19,9 @@
 # See short description of the networks in the comments below.
 #
 
+# DNS Servers for all nodes, comma delimited list
+dns_servers: ["8.8.8.8", "8.8.4.4"]
+
 # "admin" is the short name for Control Plane Network.
 # During OPNFV deployment it is used for node provisioning so
 # PXE boot should be enabled for the related interfaces on all
index e6f0135..03ecf06 100644 (file)
@@ -78,6 +78,7 @@ class NetworkEnvironment:
             net_settings[constants.PUBLIC_NETWORK]['gateway']
         self.netenv_obj[param_def]['EC2MetadataIp'] = \
             net_settings[constants.ADMIN_NETWORK]['provisioner_ip']
+        self.netenv_obj[param_def]['DnsServers'] = net_settings['dns_servers']
 
         if constants.PRIVATE_NETWORK in enabled_networks:
             priv_range = net_settings[constants.PRIVATE_NETWORK][