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 4f57fb7
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 %}
{%- 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 4f57fb7

Please sign in to comment.