diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-18 15:29:03 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-18 20:35:03 +0100 |
commit | 0a5a78621b2b28f06af1f40c10ee8bb880f860a0 (patch) | |
tree | a984e64e7135923430bedcebefc4a824f4ff735b /python | |
parent | 385b72da4845e5c247aaeae9469ca04da216a4cb (diff) | |
download | vyos-1x-0a5a78621b2b28f06af1f40c10ee8bb880f860a0.tar.gz vyos-1x-0a5a78621b2b28f06af1f40c10ee8bb880f860a0.zip |
firewall: T3560: Add support for MAC address groups
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/firewall.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index ad84393df..2ab78ff18 100644 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -108,6 +108,9 @@ def parse_rule(rule_conf, fw_name, rule_id, ip_name): elif 'network_group' in group: group_name = group['network_group'] output.append(f'{ip_name} {prefix}addr $N{def_suffix}_{group_name}') + if 'mac_group' in group: + group_name = group['mac_group'] + output.append(f'ether {prefix}addr $M_{group_name}') if 'port_group' in group: proto = rule_conf['protocol'] group_name = group['port_group'] |