diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-04 19:35:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-05 22:42:29 +0100 |
commit | 1f8c257f126d492a3f41eee72728b2c35b6b534e (patch) | |
tree | a4111e0fa5dccef83b755e3eb9071e39334a2eac /interface-definitions/protocols-static-arp.xml.in | |
parent | 3dd78cddfe90851cb7a6891add8a0973d23da292 (diff) | |
download | vyos-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.in | 37 |
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> |