def RemoveIxiaChassisPy( ixChassisIp ): availableHardware = ixNet.getList(ixNet.getRoot(), 'availableHardware')[0] chassisList = ixNet.getList(availableHardware, 'chassis') for eachIxChassis in chassisList: currentChassisIp = ixNet.getAttribute(eachIxChassis, '-ip') if currentChassisIp == ixChassisIp: print '\nRemoveIxiaChassis: ', eachIxChassis ixNet.remove(eachIxChassis) ixNet.commit()