diff --git a/partition/roles/systemd-networkd/templates/vlan.network.j2 b/partition/roles/systemd-networkd/templates/vlan.network.j2 index 4eb64f43..389236c5 100644 --- a/partition/roles/systemd-networkd/templates/vlan.network.j2 +++ b/partition/roles/systemd-networkd/templates/vlan.network.j2 @@ -5,5 +5,7 @@ Type=vlan [Link] MTUBytes={{ item.mtu | default(systemd_networkd_mtu) }} +{% if item.address is defined %} [Network] Address={{ item.address }} +{% endif %}