|
@@ -53,12 +53,22 @@ iface {{ dev }} inet6 static |
|
|
|
|
|
|
|
|
{% else %} |
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
|
|
{% if netifs[netif].type == "bridge" %} |
|
|
|
|
|
# bridge |
|
|
|
|
|
iface {{ dev }} inet manual |
|
|
|
|
|
{% if netifs[netif].devices is defined %} |
|
|
|
|
|
bridge_ports {{ netifs[netif].devices | join(" ") }} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
bridge_ports none |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% for ip in netifs[netif].ips %} |
|
|
{% for ip in netifs[netif].ips %} |
|
|
{% if ip.ip | ipv6 %} |
|
|
{% if ip.ip | ipv6 %} |
|
|
# ipv6 {{ip.ip}} |
|
|
# ipv6 {{ip.ip}} |
|
|
iface {{ dev }} inet6 static |
|
|
iface {{ dev }} inet6 static |
|
|
address {{ ip.ip | ipv6('address') }} |
|
|
address {{ ip.ip | ipv6('address') }} |
|
|
netmask {{ ip.ip | ipv6('netmask') }} |
|
|
|
|
|
|
|
|
netmask {{ ip.ip | ipv6('prefix') }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if ip.ip | ipv4 %} |
|
|
{% if ip.ip | ipv4 %} |
|
|
# ipv4 {{ip.ip}} |
|
|
# ipv4 {{ip.ip}} |
|
|