use of org.onosproject.odtn.utils.tapi.TapiGetConnectivityDetailsInputHandler in project onos by opennetworkinglab.
the class DcsBasedTapiConnectivityRpc method getConnectivityServiceDetails.
/**
* Service interface of getConnectivityServiceDetails.
*
* @param inputVar input of service interface getConnectivityServiceDetails
* @return output of service interface getConnectivityServiceDetails
*/
@Override
public RpcOutput getConnectivityServiceDetails(RpcInput inputVar) {
try {
TapiGetConnectivityDetailsInputHandler input = new TapiGetConnectivityDetailsInputHandler();
input.setRpcInput(inputVar);
log.info("input serviceId: {}", input.getId());
TapiConnectivityServiceHandler handler = TapiConnectivityServiceHandler.create();
handler.setId(input.getId());
handler.read();
TapiGetConnectivityDetailsOutputHandler output = TapiGetConnectivityDetailsOutputHandler.create().addService(handler.getModelObject());
return new RpcOutput(RpcOutput.Status.RPC_SUCCESS, output.getDataNode());
} catch (Throwable e) {
return new RpcOutput(RpcOutput.Status.RPC_FAILURE, null);
}
}
Aggregations