summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall/port.xml.i
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-01-10 01:00:12 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-01-10 21:18:03 +0100
commita5ad98b2307af974dd498a84caec94fa613f7491 (patch)
tree2c5f037102ad455f22d272e8794c5394e2f34656 /interface-definitions/include/firewall/port.xml.i
parent436805a69df324767c3efdf8d72127bef42fd720 (diff)
downloadvyos-1x-a5ad98b2307af974dd498a84caec94fa613f7491.tar.gz
vyos-1x-a5ad98b2307af974dd498a84caec94fa613f7491.zip
firewall: validators: T2199: Improve port validation
Diffstat (limited to 'interface-definitions/include/firewall/port.xml.i')
-rw-r--r--interface-definitions/include/firewall/port.xml.i5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/include/firewall/port.xml.i b/interface-definitions/include/firewall/port.xml.i
index 59d92978b..3bacafff8 100644
--- a/interface-definitions/include/firewall/port.xml.i
+++ b/interface-definitions/include/firewall/port.xml.i
@@ -16,8 +16,11 @@
</valueHelp>
<valueHelp>
<format> </format>
- <description>\n\n Multiple destination ports can be specified as a comma-separated list.\n The whole list can also be negated using '!'.\n For example: '!22,telnet,http,123,1001-1005'</description>
+ <description>\n\n Multiple destination ports can be specified as a comma-separated list.\n For example: 'telnet,http,123,1001-1005'</description>
</valueHelp>
+ <constraint>
+ <validator name="port-multi"/>
+ </constraint>
</properties>
</leafNode>
<!-- include end -->