mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removing redundant line
After looking at this a bit more closely, I believe "interface.address" was meant to be "interface.addrfam" which /does/ make sense on this line. Because of the previous notion that all interfaces will have an address, it seems a second line was created that assumed the only scenario where an iface won't have an address is when dhcp is used. Again, not an accurate assumption. I believe this /should/ handle most expected situations.
This commit is contained in:
parent
3a8168667b
commit
41ffb8d805
1 changed files with 1 additions and 2 deletions
|
@ -2,8 +2,7 @@
|
|||
{%endif%}{% if data.hotplug %}allow-hotplug {{name}}
|
||||
{%endif%}{%- if data.data['inet'] -%}
|
||||
{%- set interface = data.data['inet'] -%}
|
||||
{% if interface.proto %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{%endif%}{% if interface.proto == 'dhcp' %}iface {{name}} {{interface.addrfam}} {{interface.proto}}
|
||||
{% if interface.proto and interface.addrfam %}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}}
|
||||
|
|
Loading…
Add table
Reference in a new issue