def clearStats(self): """ Description Clear all stats and wait for API server to finish. """ url = self.ixnObj.sessionUrl + '/operations/clearstats' response = self.ixnObj.post(url, data={'arg1': ['waitForPortStatsRefresh']}) self.ixnObj.waitForComplete(response, self.ixnObj.httpHeader + response.json()['url'])