summaryrefslogtreecommitdiff
path: root/interface-definitions/netns.xml.in
blob: d5026bfae0cb89b62d5e43bd672c4d922b6e36bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="netns" owner="${vyos_conf_scripts_dir}/netns.py">
    <properties>
      <help>Network namespace</help>
      <priority>10</priority>
    </properties>
    <children>
      <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>
          #include <include/generic-description.xml.i>
        </children>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>