summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-static-arp.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-04 19:35:18 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-05 22:42:29 +0100
commit1f8c257f126d492a3f41eee72728b2c35b6b534e (patch)
treea4111e0fa5dccef83b755e3eb9071e39334a2eac /interface-definitions/protocols-static-arp.xml.in
parent3dd78cddfe90851cb7a6891add8a0973d23da292 (diff)
downloadvyos-1x-1f8c257f126d492a3f41eee72728b2c35b6b534e.tar.gz
vyos-1x-1f8c257f126d492a3f41eee72728b2c35b6b534e.zip
route: static: T2450: provide full protocol support in XML and Python with new CLI
Diffstat (limited to 'interface-definitions/protocols-static-arp.xml.in')
-rw-r--r--interface-definitions/protocols-static-arp.xml.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/interface-definitions/protocols-static-arp.xml.in b/interface-definitions/protocols-static-arp.xml.in
new file mode 100644
index 000000000..e5e8a9ad9
--- /dev/null
+++ b/interface-definitions/protocols-static-arp.xml.in
@@ -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>Translation MAC address</help>
+ <valueHelp>
+ <format>macaddr</format>
+ <description>Hardware (MAC) address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="mac-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>