this is a pain
This commit is contained in:
parent
e0aeabddf3
commit
130a1b6704
@ -10,7 +10,7 @@ network:
|
|||||||
use-routes: false
|
use-routes: false
|
||||||
{% if netplan.default_gateway is defined and netplan.default_gateway|length > 0 %}
|
{% if netplan.default_gateway is defined and netplan.default_gateway|length > 0 %}
|
||||||
gateway4: {{netplan.default_gateway}}
|
gateway4: {{netplan.default_gateway}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if netplan.additionalinterfaces is defined and netplan.additionalinterfaces|length > 0 %}
|
{% if netplan.additionalinterfaces is defined and netplan.additionalinterfaces|length > 0 %}
|
||||||
{% for interface in netplan.additionalinterfaces %}
|
{% for interface in netplan.additionalinterfaces %}
|
||||||
{{ interface.name }}:
|
{{ interface.name }}:
|
||||||
@ -23,19 +23,19 @@ network:
|
|||||||
addresses:
|
addresses:
|
||||||
{% for address in interface.addresses %}
|
{% for address in interface.addresses %}
|
||||||
- {{address}}
|
- {{address}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if interface.gateway4 is defined and interface.gateway4|length > 0 %}
|
{% if interface.gateway4 is defined and interface.gateway4|length > 0 %}
|
||||||
gateway4: {{interface.gateway4}}
|
gateway4: {{interface.gateway4}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if interface.gateway6 is defined and interface.gateway6|length > 0 %}
|
{% if interface.gateway6 is defined and interface.gateway6|length > 0 %}
|
||||||
gateway4: {{interface.gateway6}}
|
gateway4: {{interface.gateway6}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if interface.denydns %}
|
{% if interface.denydns %}
|
||||||
nameservers:
|
nameservers:
|
||||||
addresses: []
|
addresses: []
|
||||||
search: []
|
search: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user