summaryrefslogtreecommitdiff
path: root/interface-definitions/vrf.xml.in
blob: 76748e5ae8c804aca7c728f8c76c43d4a4497e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="vrf" owner="${vyos_conf_scripts_dir}/vrf.py">
    <properties>
      <help>Virtual Routing and Forwarding</help>
      <!-- must be before any interface creation -->
      <priority>210</priority>
    </properties>
    <children>
      <leafNode name="bind-to-all">
        <properties>
          <help>Enable binding services to all VRFs</help>
          <valueless/>
        </properties>
      </leafNode>
      <tagNode name="name">
        <properties>
          <help>VRF instance name</help>
          <constraint>
            <regex>[^/\s]{1,16}$</regex>
          </constraint>
          <constraintErrorMessage>VRF instance name must be 16 characters or less</constraintErrorMessage>
          <valueHelp>
            <format>name</format>
            <description>Instance name</description>
          </valueHelp>
        </properties>
        <children>
          <leafNode name="table">
            <properties>
              <help>Routing table associated with this instance</help>
              <valueHelp>
                <format>100-2147483647</format>
                <description>Routing table ID</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 100-2147483647"/>
              </constraint>
              <constraintErrorMessage>VRF routing table must be in range from 100 to 2147483647</constraintErrorMessage>
            </properties>
          </leafNode>
          #include <include/interface-description.xml.i>
        </children>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>