summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-vrf.xml.in
blob: e9ef5dc2abe46c3e754b81035029811bd763158d (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
<?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>
          <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>