summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/cc_vyos.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/config/cc_vyos.py b/cloudinit/config/cc_vyos.py
index 59571e15..e1516f1b 100644
--- a/cloudinit/config/cc_vyos.py
+++ b/cloudinit/config/cc_vyos.py
@@ -315,7 +315,7 @@ def set_config_interfaces_v1(config, iface_config):
if 'dns_search' in subnet:
for item in subnet['dns_search']:
logger.debug("Configuring DNS search domain for {}: {}".format(iface_name, item))
- config.set(['system', 'domain-search'], value=item, replace=False)
+ config.set(['system', 'domain-search', 'domain'], value=item, replace=False)
# configure nameservers
if iface_config['type'] == 'nameserver':
@@ -326,7 +326,7 @@ def set_config_interfaces_v1(config, iface_config):
if 'search' in iface_config:
for item in iface_config['search']:
logger.debug("Configuring DNS search domain: {}".format(item))
- config.set(['system', 'domain-search'], value=item, replace=False)
+ config.set(['system', 'domain-search', 'domain'], value=item, replace=False)
# configure routes
if iface_config['type'] == 'route':
@@ -413,7 +413,7 @@ def set_config_interfaces_v2(config, iface_name, iface_config):
if 'search' in iface_config['nameservers']:
for item in iface_config['nameservers']['search']:
logger.debug("Configuring DNS search domain for {}: {}".format(iface_name, item))
- config.set(['system', 'domain-search'], value=item, replace=False)
+ config.set(['system', 'domain-search', 'domain'], value=item, replace=False)
if 'addresses' in iface_config['nameservers']:
for item in iface_config['nameservers']['addresses']:
logger.debug("Configuring DNS nameserver for {}: {}".format(iface_name, item))