use of com.att.cdp.openstack.model.OpenStackNetwork in project AJSC by att.
the class OpenStackNetworkService method getNetworkById.
/**
* @see com.att.cdp.zones.NetworkService#getNetworkById(java.lang.String)
*/
@SuppressWarnings("nls")
@Override
public Network getNetworkById(String id) throws ZoneException {
checkArg(id, "id");
connect();
Context context = getContext();
trackRequest();
RequestState.put(RequestState.NETWORK, id);
RequestState.put(RequestState.SERVICE, "Network");
RequestState.put(RequestState.SERVICE_URL, quantumConnector.getEndpoint());
try {
com.woorea.openstack.quantum.model.Network n = quantumConnector.getClient().networks().show(id).execute();
return new OpenStackNetwork(context, n);
} catch (OpenStackBaseException ex) {
ExceptionMapper.mapException(ex);
}
// for the compiler
return null;
}
Aggregations