From 6be463fcca574e051420ae7549bed72e74486470 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 24 Mar 2024 20:30:33 +0100 Subject: xml: T5738: use common constraint include for container network --- interface-definitions/container.xml.in | 6 ++---- interface-definitions/include/constraint/container-network.xml.i | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 interface-definitions/include/constraint/container-network.xml.i (limited to 'interface-definitions') 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 @@ container network + #include @@ -426,10 +427,7 @@ Network name - - [-_a-zA-Z0-9]{1,11} - - Network name cannot be longer than 11 characters + #include #include 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 @@ + + + [-_a-zA-Z0-9]{1,11} + +Network name cannot be longer than 11 characters + -- cgit v1.2.3