diff options
-rw-r--r-- | lib/python/apex/common/constants.py | 1 | ||||
-rw-r--r-- | lib/python/apex/network_settings.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/apex/common/constants.py b/lib/python/apex/common/constants.py index 506b7b2b..8ed49ff7 100644 --- a/lib/python/apex/common/constants.py +++ b/lib/python/apex/common/constants.py @@ -14,3 +14,4 @@ STORAGE_NETWORK = 'storage_network' API_NETWORK = 'api_network' OPNFV_NETWORK_TYPES = [ADMIN_NETWORK, PRIVATE_NETWORK, PUBLIC_NETWORK, STORAGE_NETWORK, API_NETWORK] +DNS_SERVERS = ["8.8.8.8", "8.8.4.4"] diff --git a/lib/python/apex/network_settings.py b/lib/python/apex/network_settings.py index ea7f4ca9..1ddf4620 100644 --- a/lib/python/apex/network_settings.py +++ b/lib/python/apex/network_settings.py @@ -70,6 +70,9 @@ class NetworkSettings: logging.info("{} is not in specified, will collapse with " "admin_network".format(network)) + self.settings_obj['dns_servers'] = self.settings_obj.get( + 'dns_servers', constants.DNS_SERVERS) + def _config_required_settings(self, network): """ Configures either CIDR or bridged_interface setting |