diff options
author | Kim Hagen <kim@sentrium.io> | 2021-06-07 15:53:15 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-06-07 15:53:15 -0500 |
commit | 9f5a20ff749918694cae74d95eb8ea1142f540bb (patch) | |
tree | 8c079068b8c934ddcd9574fe5f7a3c12361a7c57 /cloudinit/config | |
parent | 025ff72784d2f45bbe361fe451a69c5cde8bfdc1 (diff) | |
download | vyos-cloud-init-9f5a20ff749918694cae74d95eb8ea1142f540bb.tar.gz vyos-cloud-init-9f5a20ff749918694cae74d95eb8ea1142f540bb.zip |
T3339: Cloud-Init domain search setting not applied.
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_vyos.py | 6 |
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)) |