2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 22:15:30 +00:00

When start simulator failed, will exit not mkdef nodes

This commit is contained in:
XuWei
2017-06-20 02:53:12 -04:00
parent 8b913ed12c
commit f3ea0a2729

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