summaryrefslogtreecommitdiff
path: root/interface-definitions/include/nat-address-port.xml.i
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions/include/nat-address-port.xml.i')
-rw-r--r--interface-definitions/include/nat-address-port.xml.i9
1 files changed, 8 insertions, 1 deletions
diff --git a/interface-definitions/include/nat-address-port.xml.i b/interface-definitions/include/nat-address-port.xml.i
index 0848364ff..8705d31cb 100644
--- a/interface-definitions/include/nat-address-port.xml.i
+++ b/interface-definitions/include/nat-address-port.xml.i
@@ -25,7 +25,14 @@
<format>!ipv4range</format>
<description>Match everything except the specified range</description>
</valueHelp>
- <!-- TODO: add general iptables constraint script -->
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv4-prefix"/>
+ <validator name="ipv4-range"/>
+ <validator name="ipv4-address-exclude"/>
+ <validator name="ipv4-prefix-exclude"/>
+ <validator name="ipv4-range-exclude"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="port">