summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorGinko <152240782+Giggum@users.noreply.github.com>2024-05-29 14:27:22 -0400
committerGitHub <noreply@github.com>2024-05-29 20:27:22 +0200
commitb7595ee9d328778105c70e3d4399ac45f555b304 (patch)
treede7bf1629582a3ea74d2a942a97c321a0ae8e86c /data/templates
parenta234384dd0603e41b6835fbc7d5cc599069a2faf (diff)
downloadvyos-1x-b7595ee9d328778105c70e3d4399ac45f555b304.tar.gz
vyos-1x-b7595ee9d328778105c70e3d4399ac45f555b304.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.
Diffstat (limited to 'data/templates')
0 files changed, 0 insertions, 0 deletions