diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-26 20:48:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 20:48:08 +0100 |
commit | f5a29d46656651035a9f53b5a12ee99ee7c1d704 (patch) | |
tree | 7d63e7c6b3b5ec90758d012eb9087097695cc7a4 /interface-definitions/include/nat-translation-port.xml.i | |
parent | c8e32f6adff3bf9f5721581c1a8cb8936677a7d5 (diff) | |
parent | 1d65ce9558b7c814295474a7cdf648866b612ff6 (diff) | |
download | vyos-1x-f5a29d46656651035a9f53b5a12ee99ee7c1d704.tar.gz vyos-1x-f5a29d46656651035a9f53b5a12ee99ee7c1d704.zip |
Merge pull request #1191 from sever-sever/T4138
nat: T4138: Add port-range validation for NAT
Diffstat (limited to 'interface-definitions/include/nat-translation-port.xml.i')
-rw-r--r-- | interface-definitions/include/nat-translation-port.xml.i | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/include/nat-translation-port.xml.i b/interface-definitions/include/nat-translation-port.xml.i index 6e507353c..6f17df3d9 100644 --- a/interface-definitions/include/nat-translation-port.xml.i +++ b/interface-definitions/include/nat-translation-port.xml.i @@ -10,6 +10,9 @@ <format>range</format> <description>Numbered port range (e.g., 1001-1005)</description> </valueHelp> + <constraint> + <validator name="port-range"/> + </constraint> </properties> </leafNode> <!-- include end --> |