def startStopIgmpHostNgpf(self, igmpHostObjList, action='start'): """ Description Start or stop IGMP Host protocol Parameters igmpHostObjList: Provide a list of one or more IGMP host object handles to start or stop. Ex: ["/api/v1/sessions/1/ixnetwork/topology/1/deviceGroup/1/ethernet/1/ipv4/1/igmpHost/1", ...] action: start or stop """ if type(igmpHostObjList) != list: raise IxNetRestApiException('igmpHostObjNgpf error: The parameter igmpHostObjList must be a list of objects.') url = self.ixnObj.sessionUrl+'/topology/deviceGroup/ethernet/ipv4/igmpHost/operations/'+action data = {'arg1': igmpHostObjList} self.ixnObj.logInfo('startStopIgmpHostNgpf: {0}'.format(action)) response = self.ixnObj.post(url, data=data) self.ixnObj.waitForComplete(response, url+'/'+response.json()['id'])