summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-24 20:30:33 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-24 19:35:45 +0000
commit2a492bd9c701852e2a436a01558e02b28e7a8ed6 (patch)
tree60291ae5a69cfc5854d26e3b71acf41a4d7d0504 /interface-definitions/container.xml.in
parent810ad5c718d685e0835b91eea17b5cf90b96fb5f (diff)
downloadvyos-1x-2a492bd9c701852e2a436a01558e02b28e7a8ed6.tar.gz
vyos-1x-2a492bd9c701852e2a436a01558e02b28e7a8ed6.zip
xml: T5738: use common constraint include for container network
(cherry picked from commit 6be463fcca574e051420ae7549bed72e74486470)
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r--interface-definitions/container.xml.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index f0db8a6f2..d0af0900a 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -211,6 +211,7 @@
<completionHelp>
<path>container network</path>
</completionHelp>
+ #include <include/constraint/container-network.xml.i>
</properties>
<children>
<leafNode name="address">
@@ -426,10 +427,7 @@
<tagNode name="network">
<properties>
<help>Network name</help>
- <constraint>
- <regex>[-_a-zA-Z0-9]{1,11}</regex>
- </constraint>
- <constraintErrorMessage>Network name cannot be longer than 11 characters</constraintErrorMessage>
+ #include <include/constraint/container-network.xml.i>
</properties>
<children>
#include <include/generic-description.xml.i>