diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-24 20:30:33 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-24 19:35:45 +0000 |
commit | 2a492bd9c701852e2a436a01558e02b28e7a8ed6 (patch) | |
tree | 60291ae5a69cfc5854d26e3b71acf41a4d7d0504 /interface-definitions/include/constraint/container-network.xml.i | |
parent | 810ad5c718d685e0835b91eea17b5cf90b96fb5f (diff) | |
download | vyos-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/include/constraint/container-network.xml.i')
-rw-r--r-- | interface-definitions/include/constraint/container-network.xml.i | 6 |
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 --> |