def startStopLdpConnectedInterfaceNgpf(self, ldpConnectedIntObjList, action='start'): """ Description Start or stop LDP Basic Router Connected Interface protocol. Parameters ldpConnectedIntObjList: : Provide a list of one or more ldpBasicRouter object handles to start or stop. Ex: ["/api/v1/sessions/{id}/ixnetwork/topology/{id}/deviceGroup/{id}/ethernet/{id}/ipv4/{id}/ldpConnectedInterface/{id}", ...] action: : start or stop """ if type(ldpConnectedIntObjList) != list: raise IxNetRestApiException('startStopLdpConnectedInterfaceNgpf error: The parameter ldpObjList must be a list of objects.') url = self.ixnObj.sessionUrl + '/topology/deviceGroup/ethernet/ipv4/ldpConnectedInterface/operations/'+action data = {'arg1': ldpConnectedIntObjList} response = self.ixnObj.post(url, data=data) self.ixnObj.waitForComplete(response, url + '/' + response.json()['id'])