summaryrefslogtreecommitdiff
path: root/interface-definitions/arp.xml
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-03-11 13:44:17 -0700
committerhagbard <vyosdev@derith.de>2019-03-11 13:44:17 -0700
commitb72a88200effbc7f94dfce3ba0db02b8a2e1b077 (patch)
treef3da2fa868419ec738d1e506bc83615cef8fde1f /interface-definitions/arp.xml
parentb3c393e587b33395c3d5cfc9f498249be237119d (diff)
downloadvyos-1x-b72a88200effbc7f94dfce3ba0db02b8a2e1b077.tar.gz
vyos-1x-b72a88200effbc7f94dfce3ba0db02b8a2e1b077.zip
[arp] - T1288: python implemtation of 'set protocols static arp'
Diffstat (limited to 'interface-definitions/arp.xml')
-rw-r--r--interface-definitions/arp.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/interface-definitions/arp.xml b/interface-definitions/arp.xml
new file mode 100644
index 000000000..b72f025a8
--- /dev/null
+++ b/interface-definitions/arp.xml
@@ -0,0 +1,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>