Page MenuHomeDevCentral

D2111.id5325.diff
No OneTemporary

D2111.id5325.diff

diff --git a/roles/core/network/files/netif.rc b/roles/core/network/files/netif.rc
--- a/roles/core/network/files/netif.rc
+++ b/roles/core/network/files/netif.rc
@@ -21,3 +21,6 @@
{% for ip in ipv4_aliases %}
ifconfig_{{ interface }}_alias{{ loop.index0 }}="inet {{ ip }} netmask 255.255.255.255"
{% endfor %}
+{% if has_native_ipv6 %}
+ifconfig_{{ ipv6_interface }}_ipv6="inet6 accept_rtadv"
+{% endif %}
diff --git a/roles/core/network/init.sls b/roles/core/network/init.sls
--- a/roles/core/network/init.sls
+++ b/roles/core/network/init.sls
@@ -26,6 +26,8 @@
ipv4_netmask: {{ network['ipv4_netmask'] | default('255.255.255.0') }}
ipv4_aliases: {{ salt['node.get_list']('network:ipv4_aliases') }}
dhcp_required: {{ salt['node.has']('network:dhcp_required') }}
+ ipv6_interface: {{ network['ipv6_interface'] }}
+ has_native_ipv6: {{ salt['node.has']('network:ipv6_native') }}
/etc/rc.conf.d/routing:
file.managed:

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 01:01 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306893
Default Alt Text
D2111.id5325.diff (968 B)

Event Timeline