jinja whitespace
This commit is contained in:
parent
df3587032d
commit
5f1e304301
@ -21,6 +21,16 @@ systemd_networkd_configs:
|
||||
src: vlan.netdev.j2
|
||||
- name: vlan110.network
|
||||
src: vlan.network.j2
|
||||
address:
|
||||
ipv4: 10.192.110.1/24
|
||||
ipv6:
|
||||
gateway:
|
||||
ipv4: 10.192.110.254
|
||||
ipv6:
|
||||
nameserver:
|
||||
ipv4:
|
||||
10.192.110.254
|
||||
ipv6:
|
||||
|
||||
qemu_bridges:
|
||||
br0
|
||||
|
@ -5,26 +5,27 @@ Name={{ item.name | regex_replace('^[0-9]*-', '') | regex_replace('\.netdev', '
|
||||
ARP={{ item.arp }}
|
||||
|
||||
[Network]
|
||||
{% if item.nameserver.ipv4 is defined %}
|
||||
{% for nameserver in item.nameserver.ipv4 %}
|
||||
{% if item.nameserver.ipv4 is defined -%}
|
||||
{% for nameserver in item.nameserver.ipv4 -%}
|
||||
DNS={{ nameserver }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.nameserver.ipv6 is defined %}
|
||||
{% for nameserver in item.nameserver.ipv6 %}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% if item.nameserver.ipv6 is defined -%}
|
||||
{% for nameserver in item.nameserver.ipv6 -%}
|
||||
DNS={{ nameserver }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
|
||||
{% if item.address.ipv4 is defined %}
|
||||
[Address]
|
||||
Address={{ item.address.ipv4 }}
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
|
||||
{% if item.address.ipv6 is defined %}
|
||||
[Address]
|
||||
Address={{ item.address.ipv6 }}
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
|
||||
|
||||
{% if item.gateway.ipv4 is defined %}
|
||||
[Route]
|
||||
@ -33,12 +34,12 @@ Gateway={{ item.gateway.ipv4 }}
|
||||
Scope=global
|
||||
Protocol=static
|
||||
Type=unicast
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
|
||||
{% if item.gateway.ipv6 is defined %}
|
||||
[Route]
|
||||
Destination=::/0
|
||||
Gateway={{ item.gateway.ipv4 }}
|
||||
Gateway={{ item.gateway.ipv6 }}
|
||||
Protocol=static
|
||||
Type=unicast
|
||||
{% endif %}
|
||||
{% endif -%}
|
Loading…
Reference in New Issue
Block a user