summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-19 18:56:03 +0100
committerGitHub <noreply@github.com>2022-01-19 18:56:03 +0100
commit569dfa77f07cb707dec4b29ed3e2a350e214af80 (patch)
tree45d677925805c564fc2ccb24a64488599fc99e08 /data/templates
parent10a740096edb5879ed79dd20db1a5f5bfaae6154 (diff)
parent0a5a78621b2b28f06af1f40c10ee8bb880f860a0 (diff)
downloadvyos-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 'data/templates')
-rw-r--r--data/templates/firewall/nftables-defines.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/firewall/nftables-defines.tmpl b/data/templates/firewall/nftables-defines.tmpl
index 3578a9dc5..d9eb7c199 100644
--- a/data/templates/firewall/nftables-defines.tmpl
+++ b/data/templates/firewall/nftables-defines.tmpl
@@ -9,6 +9,11 @@ define A_{{ group_name }} = { {{ group_conf.address | join(",") }} }
define A6_{{ group_name }} = { {{ group_conf.address | join(",") }} }
{% endfor %}
{% endif %}
+{% if group.mac_group is defined %}
+{% for group_name, group_conf in group.mac_group.items() %}
+define M_{{ group_name }} = { {{ group_conf.mac_address | join(",") }} }
+{% endfor %}
+{% endif %}
{% if group.network_group is defined %}
{% for group_name, group_conf in group.network_group.items() %}
define N_{{ group_name }} = { {{ group_conf.network | join(",") }} }