summaryrefslogtreecommitdiff
path: root/interface-definitions/include/nat-translation-options.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-25 22:33:16 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-25 22:33:16 +0100
commite1c5f629fa310251e0516ac59fb5429b9e83d7fa (patch)
treea2b5105f87b03a8eeea4def2d453c8b66b3fde44 /interface-definitions/include/nat-translation-options.xml.i
parentd25e07fd2e965b1193ad4d625167e890b0e36f6a (diff)
downloadvyos-1x-e1c5f629fa310251e0516ac59fb5429b9e83d7fa.tar.gz
vyos-1x-e1c5f629fa310251e0516ac59fb5429b9e83d7fa.zip
nat: T1083: use defaultValue from XML when handling translations
Diffstat (limited to 'interface-definitions/include/nat-translation-options.xml.i')
-rw-r--r--interface-definitions/include/nat-translation-options.xml.i6
1 files changed, 4 insertions, 2 deletions
diff --git a/interface-definitions/include/nat-translation-options.xml.i b/interface-definitions/include/nat-translation-options.xml.i
index f1539757b..925f90106 100644
--- a/interface-definitions/include/nat-translation-options.xml.i
+++ b/interface-definitions/include/nat-translation-options.xml.i
@@ -22,7 +22,8 @@
<regex>^(persistent|random)$</regex>
</constraint>
</properties>
- </leafNode>
+ <defaultValue>random</defaultValue>
+ </leafNode>
<leafNode name="port-mapping">
<properties>
<help>Port mapping options</help>
@@ -45,7 +46,8 @@
<regex>^(random|fully-random|none)$</regex>
</constraint>
</properties>
- </leafNode>
+ <defaultValue>none</defaultValue>
+ </leafNode>
</children>
</node>
<!-- include end -->