Skip to content
Snippets Groups Projects
Commit efc5dc3e authored by Lars Beckers's avatar Lars Beckers
Browse files

networkd: allow network configuration without address

parent 525c2637
Branches
No related tags found
1 merge request!7networkd: allow network configuration without address
Pipeline #4607 passed
......@@ -9,6 +9,7 @@ Name={{ network.interfaces|default([network.interface])|join(' ') }}
{% for addr in network.addresses|default([network.address]) %}
Address={{ addr }}
{% endfor %}
{% endif %}
{% for server in network.nameservers|default(nameservers) %}
DNS={{ server }}
{% endfor %}
......@@ -18,7 +19,6 @@ IPForward=yes
{% for key, value in (network.settings|default({})).items() %}
{{ key }}={{ value }}
{% endfor %}
{% endif %}
{% for route in network.routes|default([{'gateway': network.gateway}]) %}
[Route]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment