firewall: fix duplicate space in template
This commit is contained in:
parent
f489555ba1
commit
1ffdea8e43
|
@ -2,7 +2,7 @@
|
||||||
{% set prefixes = query('netbox.netbox.nb_lookup', 'prefixes', api_filter='vlan_id='~vlan.id, raw_data=true) %}
|
{% 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 prefixes4 = prefixes | selectattr('family.value', '==', 4) | map(attribute='prefix') %}
|
||||||
{% set prefixes6 = prefixes | selectattr('family.value', '==', 6) | map(attribute='prefix') %}
|
{% set prefixes6 = prefixes | selectattr('family.value', '==', 6) | map(attribute='prefix') %}
|
||||||
set {{ vlan.name }} {
|
set {{ vlan.name }} {
|
||||||
type ipv4_addr; flags interval
|
type ipv4_addr; flags interval
|
||||||
{% if prefixes4 %}
|
{% if prefixes4 %}
|
||||||
elements = { {{ prefixes4 | join(', ') }} }
|
elements = { {{ prefixes4 | join(', ') }} }
|
||||||
|
|
Loading…
Reference in a new issue