I am trying to simplify adding some ETH_OPTS and basically what i need
is some way so that when an interface has say bond0 as its
bonding_master then add the following opts.
I can get that info with
#set eth0_opts = $getVar("bonding_master_eth0","")
#set eth1_opts = $getVar("bonding_master_eth1","")
#set eth2_opts = $getVar("bonding_master_eth2","")
#set eth3_opts = $getVar("bonding_master_eth3","")
#set eth4_opts = $getVar("bonding_master_eth4","")
#set eth5_opts = $getVar("bonding_master_eth5","")
#set eth6_opts = $getVar("bonding_master_eth6","")
#if eth0_opts == "bond0"
echo ETHTOOL_OPTS="speed 100 duplex full autoneg off" >>
/etc/sysconfig/network-scripts/ifcfg-eth0
etc etc
however where there are multiple interfaces that have bond0 as the
master this comes up short as it matches the first and then stops. How
can i make the 'if' carry on through all the other interfaces, or is
there a neater way to do this altogether ?
thanks
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler