Skip to content

Commit

Permalink
conditional address
Browse files Browse the repository at this point in the history
  • Loading branch information
mwindower committed Nov 8, 2024
1 parent cc59b25 commit 7148cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions partition/roles/systemd-networkd/templates/vlan.network.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ Type=vlan
[Link]
MTUBytes={{ item.mtu | default(systemd_networkd_mtu) }}

{% if item.address is defined %}
[Network]
Address={{ item.address }}
{% endif %}

0 comments on commit 7148cac

Please sign in to comment.