summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-multicast.xml.in
blob: b1791c471e900fe2c603a6448b5d5c93f63930b6 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="protocols">
    <children>
      <node name="static">
        <children>
          <node name="multicast" owner="${vyos_conf_scripts_dir}/protocols_static_multicast.py">
            <properties>
              <help>Multicast static route</help>
            </properties>
            <children>
              <tagNode name="route">
                <properties>
                  <help>Configure static unicast route into MRIB for multicast RPF lookup</help>
                  <valueHelp>
                    <format>ipv4net</format>
                    <description>Network</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ip-prefix"/>
                  </constraint>
                </properties>
                <children>
                  <tagNode name="next-hop">
                    <properties>
                      <help>Nexthop IPv4 address</help>
                      <valueHelp>
                        <format>ipv4</format>
                        <description>Nexthop IPv4 address</description>
                      </valueHelp>
                      <constraint>
                        <validator name="ipv4-address"/>
                      </constraint>
                    </properties>
                    <children>
                      <leafNode name="distance">
                        <properties>
                          <help>Distance value for this route</help>
                          <valueHelp>
                            <format>u32:1-255</format>
                            <description>Distance for this route</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 1-255"/>
                          </constraint>
                        </properties>
                      </leafNode>
                    </children>
                  </tagNode>
                </children>
              </tagNode>
              <tagNode name="interface-route">
                <properties>
                  <help>Multicast interface based route</help>
                  <valueHelp>
                    <format>ipv4net</format>
                    <description>Network</description>
                  </valueHelp>
                  <constraint>
                    <validator name="ip-prefix"/>
                  </constraint>
                </properties>
                <children>
                  <tagNode name="next-hop-interface">
                    <properties>
                      <help>Next-hop interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py</script>
                      </completionHelp>
                    </properties>
                    <children>
                      <leafNode name="distance">
                        <properties>
                          <help>Distance value for this route</help>
                          <valueHelp>
                            <format>u32:1-255</format>
                            <description>Distance for this route</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 1-255"/>
                          </constraint>
                        </properties>
                      </leafNode>
                    </children>
                  </tagNode>
                </children>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>