diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-30 09:38:55 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-05-30 09:38:55 +0200 |
commit | 96d0e23a32a0e1b990ce022546ed7225956a0494 (patch) | |
tree | dffaaf864daa519829c4ca7f65d9d4116bb8a41f | |
parent | b7595ee9d328778105c70e3d4399ac45f555b304 (diff) | |
download | vyos-1x-96d0e23a32a0e1b990ce022546ed7225956a0494.tar.gz vyos-1x-96d0e23a32a0e1b990ce022546ed7225956a0494.zip |
hostname: T6421: enforce explicit CLI priority for host-name and domain-name
To prevent any possible races in the future the host-name and domain-name nodes
should be set with explicit priorities!
-rw-r--r-- | interface-definitions/system_domain-name.xml.in | 1 | ||||
-rw-r--r-- | interface-definitions/system_host-name.xml.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/interface-definitions/system_domain-name.xml.in b/interface-definitions/system_domain-name.xml.in index bfca9b8ce..695af29d9 100644 --- a/interface-definitions/system_domain-name.xml.in +++ b/interface-definitions/system_domain-name.xml.in @@ -5,6 +5,7 @@ <leafNode name="domain-name" owner="${vyos_conf_scripts_dir}/system_host-name.py"> <properties> <help>System domain name</help> + <priority>6</priority> <constraint> <validator name="fqdn"/> </constraint> diff --git a/interface-definitions/system_host-name.xml.in b/interface-definitions/system_host-name.xml.in index 423531a68..f74baab48 100644 --- a/interface-definitions/system_host-name.xml.in +++ b/interface-definitions/system_host-name.xml.in @@ -6,6 +6,7 @@ <leafNode name="host-name" owner="${vyos_conf_scripts_dir}/system_host-name.py"> <properties> <help>System host name (default: vyos)</help> + <priority>5</priority> <constraint> #include <include/constraint/host-name.xml.i> </constraint> |