same edit as rh7_eth.jinja

This commit is contained in:
Thomas Lau 2018-03-01 09:13:10 +08:00
parent cdbc909ac5
commit bc27217ddd
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
DEVICE={{name}}
{% if addr %}HWADDR={{addr}}
{%endif%}{% if hwaddr %}HWADDR="{{hwaddr}}"
{%endif%}{% if macaddr %}MACADDR="{{macaddr}}"
{%endif%}{% if userctl %}USERCTL={{userctl}}
{%endif%}{% if master %}MASTER={{master}}
{%endif%}{% if slave %}SLAVE={{slave}}

View File

@ -1,5 +1,6 @@
{% if "range" not in name %}DEVICE="{{name}}"
{%endif%}{% if addr %}HWADDR="{{addr}}"
{%endif%}{% if hwaddr %}HWADDR="{{hwaddr}}"
{%endif%}{% if macaddr %}MACADDR="{{macaddr}}"
{%endif%}{% if userctl %}USERCTL="{{userctl}}"
{%endif%}{% if master %}MASTER="{{master}}"
{%endif%}{% if slave %}SLAVE="{{slave}}"