summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-ospf.xml
blob: 13652ad8dde442d56c17c8190bce36d495a43808 (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
77
78
79
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="protocols">
    <children>
      <node name="nospf" owner="${vyos_conf_scripts_dir}/protocols_ospf.py">
        <properties>
          <help>Open Shortest Path First (OSPF)</help>
          <priority>620</priority>
        </properties>
        <children>
          <tagNode name="access-list">
            <properties>
              <help>Access list to filter networks in routing updates</help>
              <valueHelp>
                <format>u32</format>
                <description>Access-list number</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 0-4294967295"/>
              </constraint>
            </properties>
            <children>
              <leafNode name="export">
                <properties>
                  <help>Filter for outgoing routing update [REQUIRED]</help>
                  <completionHelp>
                    <list>bgp connected kernel rip static</list>
                  </completionHelp>
                  <valueHelp>
                    <format>bgp</format>
                    <description>Filter BGP routes</description>
                  </valueHelp>
                  <valueHelp>
                    <format>connected</format>
                    <description>Filter connected routes</description>
                  </valueHelp>
                  <valueHelp>
                    <format>kernel</format>
                    <description>Filter Kernel routes</description>
                  </valueHelp>
                  <valueHelp>
                    <format>rip</format>
                    <description>Filter RIP routes</description>
                  </valueHelp>
                  <valueHelp>
                    <format>static</format>
                    <description>Filter static routes</description>
                  </valueHelp>
                  <constraint>
                    <regex>^(bgp|connected|kernel|rip|static)$</regex>
                  </constraint>
                  <constraintErrorMessage>Must be bgp, connected, kernel, rip, or static</constraintErrorMessage>
                  <multi/>
                </properties>
              </leafNode>
            </children>
          </tagNode>
          <tagNode name="area">
            <properties>
              <help>OSPF Area</help>
              <valueHelp>
                <format>u32</format>
                <description>OSPF area in decimal notation</description>
              </valueHelp>
              <valueHelp>
                <format>ipv4</format>
                <description>OSPF area in dotted decimal notation</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 0-4294967295"/>
                <validator name="ip-address"/>
              </constraint>
            </properties>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>