network/salt/dhcp/default

10 lines
299 B
Plaintext
Raw Normal View History

2016-11-15 01:33:17 +01:00
{%- set ifaces = [] %}
{%- for iface, ips in salt['grains.get']('ip_interfaces').items() %}
2016-12-15 19:11:07 +01:00
{%- if iface not in ['core', 'lo'] and pillar['subnets-inet'].get(iface) %}
2016-11-15 01:33:17 +01:00
{%- set ifaces = ifaces.append(iface) %}
{%- endif %}
{%- endfor %}
INTERFACESv4="{{ ' '.join(ifaces) }}"
INTERFACESv6=""