diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-10 01:00:12 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-10 21:18:03 +0100 |
commit | a5ad98b2307af974dd498a84caec94fa613f7491 (patch) | |
tree | 2c5f037102ad455f22d272e8794c5394e2f34656 /interface-definitions/include/firewall/port.xml.i | |
parent | 436805a69df324767c3efdf8d72127bef42fd720 (diff) | |
download | vyos-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.i | 5 |
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 --> |