def startStopPimV4InterfaceNgpf(self, pimV4ObjList, action='start'): """ Description Start or stop PIM IPv4 interface. Parameters pimV4ObjList: Provide a list of one or more PIMv4 object handles to start or stop. Ex: ["/api/v1/sessions/1/ixnetwork/topology/1/deviceGroup/1/ethernet/1/ipv4/1/pimV4Interface/1", ...] action: start or stop """ if type(pimV4ObjList) != list: raise IxNetRestApiException('startStopPimV4InterfaceNgpf error: The parameter pimv4ObjList must be a list of objects.') url = self.ixnObj.sessionUrl+'/topology/deviceGroup/ethernet/ipv4/pimV4Interface/operations/'+action data = {'arg1': pimV4ObjList} self.ixnObj.logInfo('startStopPimV4InterfaceNgpf: {0}'.format(action)) self.ixnObj.logInfo('\t%s' % pimV4ObjList) response = self.ixnObj.post(url, data=data) self.ixnObj.waitForComplete(response, url+'/'+response.json()['id'])