SUMMARY
If the Cloud-Init network config contains a domain name, VyOS attempts to write it into the boot configuration. Unfortunately, this does not work and the domain search parameter is not applied.
STEPS TO REPRODUCE
Boot the router with the following Cloud-Init network config:
version: 1 config: - type: nameserver address: - '8.8.8.8' search: - 'example.com'
Run the following command:
show configuration commands | match domain-search
OBSERVED RESULT
No output.
EXPECTED RESULT
set system domain-search domain 'example.com'
SOFTWARE/OS VERSIONS
vyos-cloud-init @ 393cc322629604843b98da970b0761965a7a268e
ADDITIONAL INFORMATION
The issue is due to the fact that all calls in cc_vyos.py are of the following form:
config.set(['system', 'domain-search'], value=item, replace=False)
They should read like this instead:
config.set(['system', 'domain-search', 'domain'], value=item, replace=False)