id; // make sure the blade is ready before tring to get the ports. if( $iobs[$iBlade]->status == 6 ) { $myPorts = get_blade_ports($user, $iobs[$iBlade]->id ); //error_log("get_blade_ports = ". print_r($myPorts, true) ); $i = 1; foreach( $myPorts as $myPort ) { $iobs[$iBlade]->ports[$i] = new CBPort($myPort->id, $iobs[$iBlade]->id, $myPort->portNum, $myPort->status, $myPort->speed, $myPort->loopId, $myPort->frameSize, $myPort->mode, $myPort->connection, $myPort->loopIdMode, $myPort->speedAct, $myPort->wwnn ); error_log( "Got Blade port: ". print_r($myPort, true) ); //$iobs[$iBlade]->ports[$i]->dump(); $i++; } } else error_log("Could not get ports for Blade ".$iobs[$iBlade]->id.", it was in the ".$IOB_bladeStatus[$iobs[$iBlade]->state]." state."); } } else { // Just load up the BladeIds array for( $iBlade=0; $iBlade < sizeof($iobs); $iBlade++ ) { $theBladeIds[] = $iobs[$iBlade]->id; } } //error_log("Fully instansiated BLADE = ". print_r($iobs, true) ); ?>