summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-28 22:17:45 +0100
committerGitHub <noreply@github.com>2023-02-28 22:17:45 +0100
commit36cf6ea9a1c86de1352ceef9b0fd8088f1e53a44 (patch)
treedbe3e10a4770f2e400ea51594c6bd1fdaed01541 /interface-definitions/container.xml.in
parent9b88a68001b79583cc2be59b4d6e1af3bed4aecf (diff)
parentc68d73e6720a7df2b48df17ac7b9b4c906e0294c (diff)
downloadvyos-1x-36cf6ea9a1c86de1352ceef9b0fd8088f1e53a44.tar.gz
vyos-1x-36cf6ea9a1c86de1352ceef9b0fd8088f1e53a44.zip
Merge pull request #1860 from sever-sever/T4967
T4967: Allow setting container hostname
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r--interface-definitions/container.xml.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index 2ea1e6ab2..0e5fdea78 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -113,6 +113,15 @@
<constraintErrorMessage>Entrypoint must be ascii characters, use &amp;quot; and &amp;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>