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

Commit 3ede3d1

Browse files
committed
Added more options to support use_carrier and extra opts
1 parent a43322a commit 3ede3d1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ added for ethernet interfaces.
145145
bond_miimon: 100
146146
bond_lacp_rate: slow
147147
bond_xmit_hash_policy: layer3+4
148+
bond_extra_opts:
148149

149150
4) Configure a bonded interface with "802.3ad" as the bonding mode and IP
150151
address obtained via DHCP.
@@ -259,4 +260,3 @@ based on role from Benno Joy
259260
Improvements from some other GIT Forks
260261
Debian Upgrades by Martin Verges, First Colo GmbH
261262
RedHat Upgrades by Wei Tie, Cisco Systems, Inc.
262-

templates/RedHat_bond_options.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
BONDING_OPTS="mode={{ item.bond_mode }} miimon={{ item.bond_miimon|default(100) }}
2+
{%- if item.bond_xmit_hash_policy is defined %}
3+
xmit_hash_policy={{ item.bond_xmit_hash_policy }}
4+
{%- endif -%}
25
{%- if item.bond_downdelay is defined %}
36
downdelay={{ item.bond_downdelay }}
47
{%- endif -%}
@@ -8,4 +11,10 @@ BONDING_OPTS="mode={{ item.bond_mode }} miimon={{ item.bond_miimon|default(100)
811
{%- if item.bond_primary is defined %}
912
primary={{ item.bond_primary }}
1013
{%- endif -%}
14+
{%- if item.bond_use_carrier is defined %}
15+
{{ item.bond_use_carrier }}
16+
{%- endif -%}
17+
{%- if item.bond_extra_opts is defined %}
18+
{{ item.bond_extra_opts }}
19+
{%- endif -%}
1120
"

templates/bond_slave_RedHat.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ DEFROUTE={{ item.defroute | bool | ternary("yes", "no") }}
1616
{% if item.0.mtu is defined %}
1717
MTU={{ item.0.mtu }}
1818
{% endif %}
19-

0 commit comments

Comments
 (0)