summaryrefslogtreecommitdiff
path: root/interface-definitions/arp.xml.in
blob: b72f025a815439fef96d091ccfedcdbdf2677c9c (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="protocols">
    <children>
      <node name="static">
        <children>
          <tagNode name="arp" owner="${vyos_conf_scripts_dir}/arp.py">
            <properties>
              <help>Static ARP translation</help>
              <valueHelp>
                <format>ipv4</format>
                <description>IPv4 destination address</description>
              </valueHelp>
              <constraint>
                <validator name="ipv4-address"/>
              </constraint>
            </properties>
            <children>
              <leafNode name="hwaddr">
                <properties>
                  <help>mac address to translate to</help>
                  <valueHelp>
                    <format>h:h:h:h:h:h</format>
                    <description>Hardware (MAC) address</description>
                  </valueHelp>
                  <constraint>
                    <validator name="mac-address"/>
                  </constraint>
                </properties>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>