summaryrefslogtreecommitdiff
path: root/interface-definitions/include/nat-address.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-12 19:28:06 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-16 15:30:26 +0200
commitac4f99ac3b176f1804b17b32e6615e8b3701dfe8 (patch)
tree4e6595c1934572e5451cb93e687fd5abddabe884 /interface-definitions/include/nat-address.xml.i
parent1330898ed095b42b6aba7ba00f9a6932b241a230 (diff)
downloadvyos-1x-ac4f99ac3b176f1804b17b32e6615e8b3701dfe8.tar.gz
vyos-1x-ac4f99ac3b176f1804b17b32e6615e8b3701dfe8.zip
nat: T2198: split nat-address-port include into individual files
Diffstat (limited to 'interface-definitions/include/nat-address.xml.i')
-rw-r--r--interface-definitions/include/nat-address.xml.i37
1 files changed, 37 insertions, 0 deletions
diff --git a/interface-definitions/include/nat-address.xml.i b/interface-definitions/include/nat-address.xml.i
new file mode 100644
index 000000000..933dae07b
--- /dev/null
+++ b/interface-definitions/include/nat-address.xml.i
@@ -0,0 +1,37 @@
+<leafNode name="address">
+ <properties>
+ <help>IP address, subnet, or range</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IPv4 prefix to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4range</format>
+ <description>IPv4 address range to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4</format>
+ <description>Match everything except the specified address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4net</format>
+ <description>Match everything except the specified prefix</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4range</format>
+ <description>Match everything except the specified range</description>
+ </valueHelp>
+ <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>