summaryrefslogtreecommitdiff
path: root/interface-definitions/netns.xml.in
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-11-23 18:11:10 +0000
committerViacheslav <v.gletenko@vyos.io>2021-11-26 09:43:13 +0000
commit47584e030f3341b265e826643951648982cb20d0 (patch)
tree60a6861e2c84da01722ec39384b254be488c4c46 /interface-definitions/netns.xml.in
parenta2fe5dc40d439a28deb4d09e78fcf93aba4555a4 (diff)
downloadvyos-1x-47584e030f3341b265e826643951648982cb20d0.tar.gz
vyos-1x-47584e030f3341b265e826643951648982cb20d0.zip
netns: T3829: Ability to configure network namespaces
Diffstat (limited to 'interface-definitions/netns.xml.in')
-rw-r--r--interface-definitions/netns.xml.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/netns.xml.in b/interface-definitions/netns.xml.in
index 88451737a..80de805fb 100644
--- a/interface-definitions/netns.xml.in
+++ b/interface-definitions/netns.xml.in
@@ -9,13 +9,13 @@
<tagNode name="name">
<properties>
<help>Network namespace name</help>
+ <constraint>
+ <regex>^[a-zA-Z0-9-_]{1,100}</regex>
+ </constraint>
+ <constraintErrorMessage>Netns name must be alphanumeric and can contain hyphens and underscores.</constraintErrorMessage>
</properties>
<children>
- <leafNode name="descriprion">
- <properties>
- <help>Network namespace description</help>
- </properties>
- </leafNode>
+ #include <include/interface/description.xml.i>
</children>
</tagNode>
</children>