-Actually add the detected NIC to the uplink of the vSwitch

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-15 11:36:44 +00:00
parent f1fe6f7801
commit d869ebbbee

View File

@ -11,6 +11,7 @@ if [ ! -z "$MACADDR" ]; then
NIC=`esxcfg-nics -l|grep ${MACADDR}|awk '{print $1}'`
esxcfg-vswitch -a vSwitch0:64
esxcfg-vswitch -A "Management Network" vSwitch0
esxcfg-vswitch -L $NIC vSwitch0
esxcfg-vmknic -a -i DHCP -P -p "Management Network"
esxcfg-init -R $MACADDR -K vmk0
fi