summaryrefslogtreecommitdiff
path: root/interface-definitions/include/constraint/container-network.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-24 20:34:27 +0100
committerGitHub <noreply@github.com>2024-03-24 20:34:27 +0100
commit20e069d83b4c59978e5e82f48c2e7feb2c4da616 (patch)
treed31c2f11e4184b52abe386398f725b5e54814729 /interface-definitions/include/constraint/container-network.xml.i
parentafaf715194a922c92f6ff6058abc0e4b9ff570d4 (diff)
parent6be463fcca574e051420ae7549bed72e74486470 (diff)
downloadvyos-1x-20e069d83b4c59978e5e82f48c2e7feb2c4da616.tar.gz
vyos-1x-20e069d83b4c59978e5e82f48c2e7feb2c4da616.zip
Merge pull request #3181 from c-po/xml-T5738-container
xml: T5738: use common constraint include for container network
Diffstat (limited to 'interface-definitions/include/constraint/container-network.xml.i')
-rw-r--r--interface-definitions/include/constraint/container-network.xml.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/interface-definitions/include/constraint/container-network.xml.i b/interface-definitions/include/constraint/container-network.xml.i
new file mode 100644
index 000000000..6f0f06d6f
--- /dev/null
+++ b/interface-definitions/include/constraint/container-network.xml.i
@@ -0,0 +1,6 @@
+<!-- include start from constraint/container-network.xml.i -->
+<constraint>
+ <regex>[-_a-zA-Z0-9]{1,11}</regex>
+</constraint>
+<constraintErrorMessage>Network name cannot be longer than 11 characters</constraintErrorMessage>
+<!-- include end -->