Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit a66536c

Browse files
authored
Merge pull request #8 from ericsysmin/master
fixed use_carrier missing value, and allow bootproto to be what's specified with default as static
2 parents 67eb3d3 + 4f13c87 commit a66536c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/RedHat_bond_options.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BONDING_OPTS="mode={{ item.bond_mode }} miimon={{ item.bond_miimon|default(100)
1212
primary={{ item.bond_primary }}
1313
{%- endif -%}
1414
{%- if item.bond_use_carrier is defined %}
15-
{{ item.bond_use_carrier }}
15+
use_carrier={{ item.bond_use_carrier }}
1616
{%- endif -%}
1717
{%- if item.bond_extra_opts is defined %}
1818
{{ item.bond_extra_opts }}

templates/bond_RedHat.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% if item.bootproto != 'dhcp' %}
33
DEVICE={{ item.device }}
44
USERCTL=no
5-
BOOTPROTO=static
5+
BOOTPROTO={{ item.bootproto|default('static') }}
66
BONDING_MASTER=yes
77
TYPE=Bond
88
{% if item.address is defined %}

0 commit comments

Comments
 (0)