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:
@ -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
|
||||
|
Reference in New Issue
Block a user