summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ipv4-address-prefix.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-09-01 19:35:15 +0200
committerGitHub <noreply@github.com>2022-09-01 19:35:15 +0200
commit735767f09f891c438e43565f935b927e6f1b317d (patch)
tree81daee7b244db6fea41f76bd70a45e02fce0334b /interface-definitions/include/ipv4-address-prefix.xml.i
parent5c20eac6cd62f9145bc27041db9145b8ba231fa0 (diff)
parent3489089000a43a533fcd89282b0ced2434851c03 (diff)
downloadvyos-1x-735767f09f891c438e43565f935b927e6f1b317d.tar.gz
vyos-1x-735767f09f891c438e43565f935b927e6f1b317d.zip
Merge pull request #1466 from sever-sever/T538
nat: T538: Add static NAT one-to-one
Diffstat (limited to 'interface-definitions/include/ipv4-address-prefix.xml.i')
-rw-r--r--interface-definitions/include/ipv4-address-prefix.xml.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/interface-definitions/include/ipv4-address-prefix.xml.i b/interface-definitions/include/ipv4-address-prefix.xml.i
new file mode 100644
index 000000000..f5be6f1fe
--- /dev/null
+++ b/interface-definitions/include/ipv4-address-prefix.xml.i
@@ -0,0 +1,19 @@
+<!-- include start from ipv4-address-prefix.xml.i -->
+<leafNode name="address">
+ <properties>
+ <help>IP address, prefix</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IPv4 prefix to match</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv4-prefix"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->