def IxVmConnectToVChassisPy(vChassisIp): # Besides connecting to ixNet, you must also connect to the # virtual chassis to configure IxVM ports. ixvmChassisStatus = ixNet.execute('connectToChassis', vChassisIp) if ixvmChassisStatus != '::ixNet::OK': print '\nFailed to connect to virtual chassis IP: %s\n' % vChassisIp return 1 else: return 0