summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-vrf.xml.in
blob: e40edb16cf31ba25c28a5b04be501c3ad2394c7a (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
<?xml version="1.0" encoding="utf-8"?>
<interfaceDefinition>
  <node name="protocols">
    <children>
       <tagNode name="vrf" owner="${vyos_conf_scripts_dir}/protocols_vrf.py">
        <properties>
          <help>Name of VRF to add route for</help>
          <completionHelp>
            <path>vrf name</path>
          </completionHelp>
          <valueHelp>
            <format>txt</format>
            <description>VRF instance name</description>
          </valueHelp>
          <constraint>
            <validator name="vrf-name"/>
          </constraint>
          <constraintErrorMessage>VRF instance name must be 15 characters or less and can not\nbe named as regular network interfaces.\n</constraintErrorMessage>
        </properties>
        <children>
          <node name="static">
            <properties>
              <help>Static route parameters</help>
            </properties>
            <children>
              #include <include/static-route.xml.i>
              #include <include/static-route6.xml.i>
            </children>
          </node>
          <tagNode name="bgp" owner="${vyos_conf_scripts_dir}/protocols_bgp.py $VAR(../@)">
            <properties>
              <help>Border Gateway Protocol (BGP)</help>
              <valueHelp>
                <format>u32:1-4294967294</format>
                <description>Autonomous System Number</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 1-4294967294"/>
              </constraint>
            </properties>
            <children>
              #include <include/bgp/bgp-common-config.xml.i>
            </children>
          </tagNode>
          <node name="ospf" owner="${vyos_conf_scripts_dir}/protocols_ospf.py $VAR(../@)">
            <properties>
              <help>Open Shortest Path First (OSPF)</help>
            </properties>
            <children>
              #include <include/ospf/ospf-common-config.xml.i>
            </children>
          </node>
          #include <include/vni.xml.i>
        </children>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>