summaryrefslogtreecommitdiff
path: root/interface-definitions/include/static/static-route.xml.i
blob: 21babc015888aef6608e9f6bc056a436785e3ed6 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!-- include start from static/static-route.xml.i -->
<tagNode name="route">
  <properties>
    <help>VRF static IPv4 route</help>
    <valueHelp>
      <format>ipv4net</format>
      <description>IPv4 static route</description>
    </valueHelp>
    <constraint>
      <validator name="ipv4-prefix"/>
    </constraint>
  </properties>
  <children>
    <node name="blackhole">
      <properties>
        <help>Silently discard pkts when matched</help>
      </properties>
      <children>
        #include <include/static/static-route-distance.xml.i>
        <leafNode name="tag">
          <properties>
            <help>Tag value for this route</help>
            <valueHelp>
              <format>u32:1-4294967295</format>
              <description>Tag value for this route</description>
            </valueHelp>
            <constraint>
              <validator name="numeric" argument="--range 1-4294967295"/>
            </constraint>
          </properties>
        </leafNode>
      </children>
    </node>
    #include <include/dhcp-interface.xml.i>
    <tagNode name="interface">
      <properties>
        <help>Next-hop IPv4 router interface</help>
        <completionHelp>
          <script>${vyos_completion_dir}/list_interfaces.py</script>
        </completionHelp>
        <valueHelp>
          <format>txt</format>
          <description>Gateway interface name</description>
        </valueHelp>
        <constraint>
          <validator name="interface-name"/>
        </constraint>
      </properties>
      <children>
        #include <include/generic-disable-node.xml.i>
        #include <include/static/static-route-distance.xml.i>
        #include <include/static/static-route-vrf.xml.i>
      </children>
    </tagNode>
    <tagNode name="next-hop">
      <properties>
        <help>Next-hop IPv4 router address</help>
        <valueHelp>
          <format>ipv4</format>
          <description>Next-hop router address</description>
        </valueHelp>
        <constraint>
          <validator name="ipv4-address"/>
        </constraint>
      </properties>
      <children>
        #include <include/generic-disable-node.xml.i>
        #include <include/static/static-route-distance.xml.i>
        #include <include/static/static-route-interface.xml.i>
        #include <include/static/static-route-vrf.xml.i>
      </children>
    </tagNode>
  </children>
</tagNode>
<!-- include end -->