diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-10 22:24:27 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-07 19:39:19 +0000 |
commit | 6fd250ea8e5488faadf66cdeadc55d8ee49cc9f7 (patch) | |
tree | 0d38e3ea296995f0466fbee210c65d38e489ad57 /interface-definitions | |
parent | 269ad333bc749bb7da15f1a2641d6c5bae56d1fd (diff) | |
download | vyos-1x-6fd250ea8e5488faadf66cdeadc55d8ee49cc9f7.tar.gz vyos-1x-6fd250ea8e5488faadf66cdeadc55d8ee49cc9f7.zip |
T5559: Add static neighbor-proxy feature
Ability to set ip neigbhor proxy
set protocols static neighbor-proxy arp 192.0.2.1 interface 'eth0'
set protocols static neighbor-proxy arp 192.0.2.2 interface 'eth0'
set protocols static neighbor-proxy nd 2001:db8::1 interface 'eth1'
(cherry picked from commit c56af995b6e3d867c2a67deeb4be79e498f0a7cf)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/protocols_static_neighbor-proxy.xml.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/interface-definitions/protocols_static_neighbor-proxy.xml.in b/interface-definitions/protocols_static_neighbor-proxy.xml.in new file mode 100644 index 000000000..1c8433a39 --- /dev/null +++ b/interface-definitions/protocols_static_neighbor-proxy.xml.in @@ -0,0 +1,48 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="protocols"> + <children> + <node name="static"> + <children> + <node name="neighbor-proxy" owner="${vyos_conf_scripts_dir}/protocols_static_neighbor-proxy.py"> + <properties> + <help>Neighbor proxy parameters</help> + </properties> + <children> + <tagNode name="arp"> + <properties> + <help>IP address for selective ARP proxy</help> + <valueHelp> + <format>ipv4</format> + <description>IPv4 destination address allowed for proxy-arp</description> + </valueHelp> + <constraint> + <validator name="ipv4-address"/> + </constraint> + </properties> + <children> + #include <include/generic-interface-multi.xml.i> + </children> + </tagNode> + <tagNode name="nd"> + <properties> + <help>IPv6 address for selective NDP proxy</help> + <valueHelp> + <format>ipv6</format> + <description>IPv6 destination address</description> + </valueHelp> + <constraint> + <validator name="ipv6-address"/> + </constraint> + </properties> + <children> + #include <include/generic-interface-multi.xml.i> + </children> + </tagNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> |