use of org.onosproject.odtn.utils.tapi.TapiGetSipListOutputHandler in project onos by opennetworkinglab.
the class DcsBasedTapiCommonRpc method getServiceInterfacePointList.
/**
* Service interface of getServiceInterfacePointList.
*
* @param rpcInput input of service interface getServiceInterfacePointList
* @return rpcOutput output of service interface getServiceInterfacePointList
*/
@Override
public RpcOutput getServiceInterfacePointList(RpcInput rpcInput) {
try {
TapiGetSipListOutputHandler output = TapiGetSipListOutputHandler.create();
resolver.getNepRefs().stream().filter(nepRef -> nepRef.getSipId() != null).forEach(nepRef -> {
output.addSip(Uuid.fromString(nepRef.getSipId()));
});
return new RpcOutput(RpcOutput.Status.RPC_SUCCESS, output.getDataNode());
} catch (Throwable e) {
log.error("Error:", e);
return new RpcOutput(RpcOutput.Status.RPC_FAILURE, null);
}
}
Aggregations