def configPrefixPoolsRouteProperty(self, prefixPoolsObj, protocolRouteRange, **data): """ Description Configure Network Group Prefix Pools for all Route properties. Supports both IPv4PrefixPools and IPv6PrefiPools. For protocolRouteRange attributes, use the IxNetwork API browser. Parameters prefixPoolsObj: : Example: /api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/networkGroup/{id}/ipv4PrefixPools/{id} protocolRouteRange: : Get choices from IxNetwork API Browser. Current choices: bgpIPRouteProperty, isisL3RouteProperty, etc. data: The protocol properties. Make your configuration and get from IxNetwork API Browser. Syntax PATCH: /api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/networkGroup/{id}/ipv4PrefixPools/{id}/protocolRouterRange/{id} """ ''' response = self.ixnObj.get(self.ixnObj.httpHeader + prefixPoolsObj + '/{0}/1'.format(protocolRouteRange)) for attribute, value in data.items(): multivalue = response.json()[attribute] self.ixnObj.logInfo('Configuring PrefixPools {0} Route Property multivalue attribute: {1}'.format(protocolRouteRange, attribute)) self.ixnObj.patch(self.ixnObj.httpHeader+multivalue+"/singleValue", data={'value': data[attribute]}) ''' response = self.ixnObj.get(self.ixnObj.httpHeader + prefixPoolsObj + '/{0}/1'.format(protocolRouteRange)) for attribute, value in data.items(): multivalue = response.json()[attribute] self.ixnObj.logInfo('Configuring PrefixPools {0} Route Property multivalue attribute: {1}'.format(protocolRouteRange, attribute)) if type(value) == dict: if 'direction' in value: self.ixnObj.patch(self.ixnObj.httpHeader + multivalue + "/counter", data=value) else: self.ixnObj.patch(self.ixnObj.httpHeader+multivalue+"/singleValue", data={'value': data[attribute]})