summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-26 10:53:08 +0200
committerGitHub <noreply@github.com>2022-06-26 10:53:08 +0200
commitf75da014ae295e6cdf352754bfd998a453e81743 (patch)
tree4310f60dda10692b0d5439d47e75561a75e863ab /src
parent56457c9f35c5273d1d7ad679f37278c6cf2c77b0 (diff)
parenta54c755991af60e268551f7ad6f606e126a5baa5 (diff)
downloadvyos-1x-f75da014ae295e6cdf352754bfd998a453e81743.tar.gz
vyos-1x-f75da014ae295e6cdf352754bfd998a453e81743.zip
Merge pull request #1368 from sarthurdev/firewall-opsummary
firewall: T4484: Fix op-mode summary for address groups with ranges.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py
index 3146fc357..0aea17b3a 100755
--- a/src/op_mode/firewall.py
+++ b/src/op_mode/firewall.py
@@ -270,7 +270,7 @@ def show_firewall_group(name=None):
references = find_references(group_type, group_name)
row = [group_name, group_type, '\n'.join(references) or 'N/A']
if 'address' in group_conf:
- row.append("\n".join(sorted(group_conf['address'], key=ipaddress.ip_address)))
+ row.append("\n".join(sorted(group_conf['address'])))
elif 'network' in group_conf:
row.append("\n".join(sorted(group_conf['network'], key=ipaddress.ip_network)))
elif 'mac_address' in group_conf: