Skip to content

Commit

Permalink
Bring back addresses on tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Sep 22, 2024
1 parent 8b40962 commit 4529d51
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ubiquiti-edge-router.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@
{%- endif %}

{#- Tunnels #}
{%- with term = intf.tunnel_terminations.first() %}
{%- set term = intf.tunnel_terminations.first() %}
{%- if term %}

{%- with remote = term.tunnel.terminations.exclude(termination_id=intf.id).first() %}
{%- set remote = term.tunnel.terminations.exclude(termination_id=intf.id).first() %}
{%- if remote %}

{%- set iftype = "tunnel" %}
Expand All @@ -57,10 +56,7 @@ set interfaces tunnel {{ intf.name }} remote-ip {{ remote_ip.address.ip }}
{%- endwith %}

{%- endif %}
{%- endwith %}

{%- endif %}
{%- endwith %}

{#- Generic interface config #}
{%- if iftype %}
Expand Down

0 comments on commit 4529d51

Please sign in to comment.