Skip to content
Snippets Groups Projects
Commit 526ebcf5 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

rh_interface bugfix: handle bonding masters other than bond0.

When configuring a bonded network interface, we by mistake configured
the slaves to have "bond0" as their master instead of the actual master
interface that was being configured.  We obviously never tested this
with a bonding interface named anything other than "bond0"...  The
correct thing to do is of course setting MASTER to $name, so do that.

This was originally commit ca9facdcdb88 in nsc-puppet-utils.
parent 94f48789
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ define rh_interface($bootproto='static',# 'static', 'dhcp' or 'unconfigured' ...@@ -163,7 +163,7 @@ define rh_interface($bootproto='static',# 'static', 'dhcp' or 'unconfigured'
# Must not set HWADDR, since the MAC address of bonding # Must not set HWADDR, since the MAC address of bonding
# slaves are changed by the bonding driver, and there is # slaves are changed by the bonding driver, and there is
# no way of finding the "real" MAC address of the slave. # no way of finding the "real" MAC address of the slave.
'MASTER' => 'bond0', 'SLAVE' => 'yes', 'HWADDR' => false, 'MASTER' => $name, 'SLAVE' => 'yes', 'HWADDR' => false,
}; };
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment