2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 02:00:24 +00:00

Merge pull request #3292 from xuweibj/tc_simulator

If start simulator failed, will exit not mkdef nodes
This commit is contained in:
Weihua Hu
2017-06-20 15:01:10 +08:00
committed by GitHub

View File

@@ -47,6 +47,10 @@ if [ $flag = "-s" ]; then
rmdef $cnhn
/root/openbmc_simulator/simulator -n $nic -r $range
if [ $? != 0 ]; then
echo "Start simulator Failed"
exit 1
fi
node_end=$[nodes-1]
chdef -t group $cnhn mgt=openbmc bmc="|\D+(\d+)$|10.100.(1+((\$1)/100)).((\$1)%100+1)|" bmcusername=$username bmcpassword=$password