diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-06-25 22:59:21 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-06-25 23:46:21 +0200 |
commit | a54c755991af60e268551f7ad6f606e126a5baa5 (patch) | |
tree | 4310f60dda10692b0d5439d47e75561a75e863ab | |
parent | 56457c9f35c5273d1d7ad679f37278c6cf2c77b0 (diff) | |
download | vyos-1x-a54c755991af60e268551f7ad6f606e126a5baa5.tar.gz vyos-1x-a54c755991af60e268551f7ad6f606e126a5baa5.zip |
firewall: T4484: Fix op-mode summary for address groups with ranges.
-rwxr-xr-x | src/op_mode/firewall.py | 2 |
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: |