mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
This now seems absurdly obvious, but I'm not ruling out that I'll break everything.
This commit is contained in:
parent
82d2b89e0c
commit
6e7fc39c68
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
{%endif%}{% if data.hotplug %}allow-hotplug {{name}}{# Hotplug #}
|
||||
{%endif%}{%- if data.data['inet'] -%}{# IPv4 #}
|
||||
{%- set interface = data.data['inet'] -%}
|
||||
{% if interface.proto and interface.addrfam %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{% if interface.proto and interface.addrfam == 'inet' %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{%endif%}{% if interface.hwaddress %} hwaddress {{interface.hwaddress}}
|
||||
{%endif%}{% if interface.vlan_raw_device %} vlan-raw-device {{interface.vlan_raw_device}}
|
||||
{%endif%}{% if interface.address %} address {{interface.address}}
|
||||
|
@ -63,7 +63,7 @@
|
|||
{%- endif%}
|
||||
{%- if data.data['inet6'] -%}{# IPv6 #}
|
||||
{%- set interface = data.data['inet6'] -%}
|
||||
{% if interface.proto and interface.addrfam %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{% if interface.proto and interface.addrfam == 'inet6' %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{%endif%}{% if interface.hwaddress %} hwaddress {{interface.hwaddress}}
|
||||
{%endif%}{% if interface.address %} address {{interface.address}}
|
||||
{%endif%}{% if interface.netmask %} netmask {{interface.netmask}}
|
||||
|
|
Loading…
Add table
Reference in a new issue