Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc27217

Browse files
author
Thomas Lau
committed
same edit as rh7_eth.jinja
1 parent cdbc909 commit bc27217

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

salt/templates/rh_ip/rh5_eth.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
DEVICE={{name}}
2-
{% if addr %}HWADDR={{addr}}
2+
{%endif%}{% if hwaddr %}HWADDR="{{hwaddr}}"
3+
{%endif%}{% if macaddr %}MACADDR="{{macaddr}}"
34
{%endif%}{% if userctl %}USERCTL={{userctl}}
45
{%endif%}{% if master %}MASTER={{master}}
56
{%endif%}{% if slave %}SLAVE={{slave}}

salt/templates/rh_ip/rh6_eth.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% if "range" not in name %}DEVICE="{{name}}"
2-
{%endif%}{% if addr %}HWADDR="{{addr}}"
2+
{%endif%}{% if hwaddr %}HWADDR="{{hwaddr}}"
3+
{%endif%}{% if macaddr %}MACADDR="{{macaddr}}"
34
{%endif%}{% if userctl %}USERCTL="{{userctl}}"
45
{%endif%}{% if master %}MASTER="{{master}}"
56
{%endif%}{% if slave %}SLAVE="{{slave}}"

0 commit comments

Comments
 (0)