def enableAnalyzerOnAssignedPorts(self): """ Enable Analyzer for all assigned ports """ communtiyListUrl = "%s/ixload/test/activeTest/communityList" % self.sessionIdUrl response = self.get(communtiyListUrl) communityList = response.json() for community in communityList: communityObjectId = community['objectID'] portListUrl = "%s/%s/network/portList" % (communtiyListUrl, communityObjectId) self.patch(portListUrl, data={"enableCapture" : "true"})