summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-09 08:59:02 +0100
committerGitHub <noreply@github.com>2021-03-09 08:59:02 +0100
commit370d2d817f87418be15952af15e686badef4f687 (patch)
tree45ba1048455c81ed1540bc7e7f28673652a5332b /interface-definitions
parentab6ef466c128ba48f85b13ba8d4be1476e844726 (diff)
parent988be4157422975bec75122e875b722f7c933966 (diff)
downloadvyos-1x-370d2d817f87418be15952af15e686badef4f687.tar.gz
vyos-1x-370d2d817f87418be15952af15e686badef4f687.zip
Merge pull request #762 from jack9603301/T2518
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>