def configLacpNgpf(self, ethernetObj, **kwargs): """ Description Create new LACP group. Parameter ethernetObj: : The Ethernet stack object to create the LACP. Example: /api/v1/sessions/1/ixnetwork/topology/1/deviceGroup/1/ethernet/1 administrativeKey: : Default=1 actorSystemId: : Default='00 00 00 00 00 01'. actorSystemPriority: : Default=1 actorKey: : Default=1 actorPortNumber: : Default=1 actorPortPriority: : Default=1 Syntax POST: /api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/ethernet/{id}/lacp PATCH: /api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/ethernet/{id}/lacp/{id} Return /api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/ethernet/{id}/lacp/{id} """ response = self.ixnObj.post(self.ixnObj.httpHeader+ethernetObj+'/lacp') lacpObj = response.json()['links'][0]['href'] self.configuredProtocols.append(lacpObj) self.ixnObj.logInfo('Create new LACP NGPF') lacpResponse = self.ixnObj.get(self.ixnObj.httpHeader+lacpObj) lacpAttributes = ['administrativeKey', 'actorSystemId', 'actorSystemPriority', 'actorKey', 'actorPortNumber', 'actorPortPriority'] data = {} for lacpAttribute in lacpAttributes: if lacpAttribute in kwargs: multiValue = lacpResponse.json()[lacpAttribute] self.ixnObj.logInfo('Configuring LACP attribute: %s' % lacpAttribute) self.ixnObj.patch(self.ixnObj.httpHeader+multiValue+"/singleValue", data={'value': kwargs[lacpAttribute]}) data.update({'value': kwargs[lacpAttribute]}) return lacpObj