diff options
author | Ginko <152240782+Giggum@users.noreply.github.com> | 2024-05-29 14:27:22 -0400 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-29 18:29:00 +0000 |
commit | 33c987bf43ad27d7b0a7fd68dbcefa96b1e7b102 (patch) | |
tree | 5dde08e4a72cd9a6906a09fc9a0ac837f1b43331 /interface-definitions/pki.xml.in | |
parent | 0bada0f998c551f1b53686de3e93a6de8fd84d37 (diff) | |
download | vyos-1x-33c987bf43ad27d7b0a7fd68dbcefa96b1e7b102.tar.gz vyos-1x-33c987bf43ad27d7b0a7fd68dbcefa96b1e7b102.zip |
nat: T6371: fix op mode display of configured ports when comma separated list of ports/ranges exists
Before: Issuing the op mode command "show nat source rules" will throw an
exception if the user has configured NAT rules using a list of ports as a
comma-separated list (e.g. '!22,telnet,http,123,1001-1005'). Also there was
no handling for the "!" rule and so '!53' would display as '53'.
With this PR: Introduced iteration to capture all configured ports and append
to the appropriate string for display to the user as well as handling of '!' if
present in user's configuration.
(cherry picked from commit b7595ee9d328778105c70e3d4399ac45f555b304)
Diffstat (limited to 'interface-definitions/pki.xml.in')
0 files changed, 0 insertions, 0 deletions