Skip to content

Commit

Permalink
Avoid repeating prefix lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Sep 22, 2024
1 parent bfb2223 commit 743893c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubiquiti-edge-router.j2
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ set protocols ripng interface {{ intf }}
{%- endfor %}

{# Policy #}
{%- for pfxlist in prefix_list_used %}
{%- for pfxlist in prefix_list_used|unique %}

Check failure on line 151 in ubiquiti-edge-router.j2

View workflow job for this annotation

GitHub Actions / Lint Jinja Templates

S2

The operator | needs to be enclosed by a single space on each side
{%- set policytype = 'prefix-list6' if pfxlist.family == 'ipv6' else 'prefix-list' %}
{%- if pfxlist.description != '' %}
set policy {{ policytype }} {{ pfxlist.name }} description "{{ pfxlist.description | slugify(**description_slugifier) }}"
Expand Down

0 comments on commit 743893c

Please sign in to comment.