summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-03-09 00:39:20 +0800
committerjack9603301 <jack9603301@163.com>2021-03-09 02:01:41 +0800
commit4c8d882e9125fb45977f74a217e9d716138d6291 (patch)
tree40fb85fb3b4cf1cc1cc812bb529e653ea6418a5b /interface-definitions
parent87bbe75152e3e0625776587c1fd4cd7104319fe1 (diff)
downloadvyos-1x-4c8d882e9125fb45977f74a217e9d716138d6291.tar.gz
vyos-1x-4c8d882e9125fb45977f74a217e9d716138d6291.zip
nptv6: T2518: Support IPv6 address translation
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/nat66.xml.in19
1 files changed, 16 insertions, 3 deletions
diff --git a/interface-definitions/nat66.xml.in b/interface-definitions/nat66.xml.in
index b45ebc0a8..d5e1226f9 100644
--- a/interface-definitions/nat66.xml.in
+++ b/interface-definitions/nat66.xml.in
@@ -70,18 +70,31 @@
</node>
<node name="translation">
<properties>
- <help>Translated IPv6 prefix options</help>
+ <help>Translated IPv6 address options</help>
</properties>
<children>
- <leafNode name="prefix">
+ <leafNode name="address">
<properties>
- <help>IPv6 prefix to translate to</help>
+ <help>IPv6 address to translate to</help>
+ <completionHelp>
+ <list>masquerade</list>
+ </completionHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>IPv6 address</description>
+ </valueHelp>
<valueHelp>
<format>ipv6net</format>
<description>IPv6 prefix</description>
</valueHelp>
+ <valueHelp>
+ <format>masquerade</format>
+ <description>NAT to the primary address of outbound-interface</description>
+ </valueHelp>
<constraint>
+ <validator name="ipv6-address"/>
<validator name="ipv6-prefix"/>
+ <regex>(masquerade)</regex>
</constraint>
</properties>
</leafNode>