<?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</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>