diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-28 14:25:39 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2023-03-01 08:28:34 +0100 |
commit | 4bcc364559beb0943a725ff6be737630ee78d527 (patch) | |
tree | ab7629eeeda675a9c61be9d5e9ab757b7b9687cc /interface-definitions | |
parent | a214896fca177704998314c22fe6a57314c22827 (diff) | |
download | vyos-1x-4bcc364559beb0943a725ff6be737630ee78d527.tar.gz vyos-1x-4bcc364559beb0943a725ff6be737630ee78d527.zip |
T4967: Allow setting container hostname
Ability setting container hostname
This host name is used as /etc/hostname
set container name <tag> host-name 'mybox'
(cherry picked from commit c68d73e6720a7df2b48df17ac7b9b4c906e0294c)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/container.xml.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index 479f13355..4614bc892 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -113,6 +113,15 @@ <constraintErrorMessage>Entrypoint must be ascii characters, use &quot; and &apos for double and single quotes respectively</constraintErrorMessage> </properties> </leafNode> + <leafNode name="host-name"> + <properties> + <help>Container host name</help> + <constraint> + <regex>[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]</regex> + </constraint> + <constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage> + </properties> + </leafNode> <leafNode name="image"> <properties> <help>Image name in the hub-registry</help> |