From 1ffdea8e435f2749d48dd3900d0fed5704b4967b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 5 Apr 2024 12:00:55 +0200 Subject: [PATCH] firewall: fix duplicate space in template --- roles/firewall/templates/networks.nft.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/firewall/templates/networks.nft.j2 b/roles/firewall/templates/networks.nft.j2 index a280c75..2a13f6e 100644 --- a/roles/firewall/templates/networks.nft.j2 +++ b/roles/firewall/templates/networks.nft.j2 @@ -2,7 +2,7 @@ {% set prefixes = query('netbox.netbox.nb_lookup', 'prefixes', api_filter='vlan_id='~vlan.id, raw_data=true) %} {% set prefixes4 = prefixes | selectattr('family.value', '==', 4) | map(attribute='prefix') %} {% set prefixes6 = prefixes | selectattr('family.value', '==', 6) | map(attribute='prefix') %} -set {{ vlan.name }} { +set {{ vlan.name }} { type ipv4_addr; flags interval {% if prefixes4 %} elements = { {{ prefixes4 | join(', ') }} }