summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-pim.xml.in
blob: bb5cc797b41aef3507209e854f63e00d385c7662 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0"?>
<!-- Protocol Independent Multicast (PIM) configuration -->
<interfaceDefinition>
  <node name="protocols">
    <children>
      <node name="pim" owner="${vyos_conf_scripts_dir}/protocols_pim.py">
        <properties>
          <help>Protocol Independent Multicast (PIM)</help>
          <priority>400</priority>
        </properties>
        <children>
          <tagNode name="interface">
            <properties>
              <help>PIM interface</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="dr-priority">
                <properties>
                  <help>Designated Router Election Priority</help>
                  <valueHelp>
                    <format>u32:1-4294967295</format>
                    <description>Value of the new DR Priority</description>
                  </valueHelp>
                  <constraint>
                    <validator name="numeric" argument="--range 1-4294967295"/>
                  </constraint>
                </properties>
              </leafNode>
              <leafNode name="hello">
                <properties>
                  <help>Hello Interval</help>
                  <valueHelp>
                    <format>u32:1-180</format>
                    <description>Hello Interval in seconds</description>
                  </valueHelp>
                  <constraint>
                    <validator name="numeric" argument="--range 1-180"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </tagNode>
          <node name="rp">
            <properties>
              <help>Rendezvous Point</help>
            </properties>
            <children>
              <tagNode name="address">
                <properties>
                  <help>Rendezvous Point address</help>
                  <valueHelp>
                    <format>ipv4</format>
                    <description>Rendezvous Point address</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ipv4-address"/>
                  </constraint>
                </properties>
                <children>
                  <leafNode name="group">
                    <properties>
                      <help>Group Address range</help>
                      <valueHelp>
                        <format>ipv4net</format>
                        <description>Group Address range RFC 3171</description>
                      </valueHelp>
                      <constraint>
                        <validator name="ip-prefix"/>
                      </constraint>
                      <multi/>
                    </properties>
                  </leafNode>
                </children>
              </tagNode>
              <leafNode name="keep-alive-timer">
                <properties>
                  <help>Keep alive Timer</help>
                  <valueHelp>
                    <format>u32:31-60000</format>
                    <description>Keep alive Timer in seconds</description>
                  </valueHelp>
                  <constraint>
                    <validator name="numeric" argument="--range 31-60000"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>