def applyConfiguration(self): # Apply the configuration. # If applying configuration failed, you have the option to keep the # sessionId alive for debugging or delete it. url = self.sessionIdUrl+'/ixLoad/test/operations/applyconfiguration' response = self.post(url, ignoreError=True) if response.status_code != 202: if self.deleteSession: self.deleteSessionId() raise IxLoadRestApiException('applyConfiguration failed') operationsId = response.headers['Location'] operationsId = operationsId.split('/')[-1] ;# Return the number only url = url+'/'+str(operationsId) self.verifyStatus(response.headers['Location'])