summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-28 21:10:10 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-28 21:10:10 +0100
commite4ea410b7587b0018055962c295ab491133f458c (patch)
treeced2d9afb851ab76d729b39679d1c17c13c48721 /interface-definitions
parentfb648267bf5a236b3d7fa32026fedbb43fc4f9ce (diff)
downloadvyos-1x-e4ea410b7587b0018055962c295ab491133f458c.tar.gz
vyos-1x-e4ea410b7587b0018055962c295ab491133f458c.zip
nat: T3092: migrate to get_config_dict()
The NAT system consists out of nested tag nodes which makes manual parsing very hard. This is a perfect candidate for migrating this to get_config_dict() as there is already a smoketest in place. In addition this should make it easier to add features like static nat/hairpin.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/nat-rule.xml.i1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface-definitions/include/nat-rule.xml.i b/interface-definitions/include/nat-rule.xml.i
index f91834ae0..e70cfd796 100644
--- a/interface-definitions/include/nat-rule.xml.i
+++ b/interface-definitions/include/nat-rule.xml.i
@@ -290,6 +290,7 @@
<validator name="ip-protocol"/>
</constraint>
</properties>
+ <defaultValue>all</defaultValue>
</leafNode>
<node name="source">
<properties>