Compare commits

..

No commits in common. "39fec47f876d6364926b99f8411761a44ab49888" and "5667b755ca938a3cbec22f7b289326e0fe902145" have entirely different histories.

2 changed files with 7 additions and 13 deletions

View file

@ -4,21 +4,15 @@ iface lo inet loopback
{% for iface in interfaces | selectattr('enabled') %}
auto {{ iface.name }}
iface {{ iface.name }} inet static
{% for address in iface.ip_addresses %}
address {{ address.address }}
{% if address.family.value == 4 %}
{% set subnet = address.address | ipaddr('subnet') %}
{% for ip in iface.ip_addresses %}
address {{ ip.address }}
{% set subnet = ip.address | ipaddr('subnet') %}
{% set prefix = prefixes | selectattr('prefix', '==', subnet) | first %}
{% set gateway = prefix.custom_fields.gateway.address %}
{% if gateway is defined and gateway != address.address %}
{% if gateway is defined and gateway != ip.address %}
gateway {{ gateway | ipaddr('address') }}
{% endif %}
{% endif %}
{% endfor -%}
{# disable SLAAC if we have a manually set IPv6 address #}
{% if iface.ip_addresses | selectattr("family.value", "==", 6) %}
{% endfor %}
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
{% endif %}
{% endfor %}

View file

@ -18,8 +18,8 @@ body {
.page p, .page ol, .page ul {
text-align: justify;
line-height: 1.4em;
margin: 0 0 0.75em;
line-height: 1.6em;
margin: 0 0 0.5em;
}
.page code {