Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml: T5738: use common constraint include for container network (backport #3181) #3183

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions interface-definitions/container.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<completionHelp>
<path>container network</path>
</completionHelp>
#include <include/constraint/container-network.xml.i>
</properties>
<children>
<leafNode name="address">
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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 -->
Loading