diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-19 18:56:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 18:56:03 +0100 |
commit | 569dfa77f07cb707dec4b29ed3e2a350e214af80 (patch) | |
tree | 45d677925805c564fc2ccb24a64488599fc99e08 /src/op_mode/firewall.py | |
parent | 10a740096edb5879ed79dd20db1a5f5bfaae6154 (diff) | |
parent | 0a5a78621b2b28f06af1f40c10ee8bb880f860a0 (diff) | |
download | vyos-1x-569dfa77f07cb707dec4b29ed3e2a350e214af80.tar.gz vyos-1x-569dfa77f07cb707dec4b29ed3e2a350e214af80.zip |
Merge pull request #1177 from sarthurdev/mac_groups
firewall: T3560: Add support for MAC address groups
Diffstat (limited to 'src/op_mode/firewall.py')
-rwxr-xr-x | src/op_mode/firewall.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/firewall.py b/src/op_mode/firewall.py index 030a9b19a..b6bb5b802 100755 --- a/src/op_mode/firewall.py +++ b/src/op_mode/firewall.py @@ -272,6 +272,8 @@ def show_firewall_group(name=None): row.append("\n".join(sorted(group_conf['address'], key=ipaddress.ip_address))) elif 'network' in group_conf: row.append("\n".join(sorted(group_conf['network'], key=ipaddress.ip_network))) + elif 'mac_address' in group_conf: + row.append("\n".join(sorted(group_conf['mac_address']))) elif 'port' in group_conf: row.append("\n".join(sorted(group_conf['port']))) else: |