def refreshAllChassis(connection, sessionUrl): ''' This method is used to refresh all chassis. Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - sessionUrl is the address of the session that should run the test ''' chassisListUrl = "%s/ixload/chassisChain/chassisList" % (sessionUrl) chassisList = connection.httpGet(chassisListUrl) for chassisObj in chassisList: chassisId = chassisObj.objectID refreshConnectionUrl = "%s/%s/operations/refreshConnection" % (chassisListUrl, chassisId) performGenericOperation(connection, refreshConnectionUrl, {})