def configCommunityAttributes(self, name, **kwargs): """ Config any attributes in the the path of: /ixLoad/test/activeTest/communityList/ This function will loop through each communityList for the communityName and set the attribute(s) that you defined. Parameter name: The name of the Community object. **kwargs: All the attributes to configure in a community object. Usage restObj.configCommunityAttributes(name='Traffic1@Network1', totalUserObjectiveValue=505) Raise Exception If the community name wasn't found. """ self.logInfo('configCommunityAttributes') url = self.sessionIdUrl+'/ixLoad/test/activeTest/communityList' response = self.get(url) for communityObj in response.json(): if communityObj['name'] == name: communityUrl = url + '/' + str(communityObj['objectID']) self.patch(communityUrl, data=kwargs) return raise IxLoadRestApiException('No such name found in configCommunityAttributes: {}'.format(name))