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