use of com.woorea.openstack.quantum.api.VLANResource in project AJSC by att.
the class OpenStackNetworkService method getVLANTransparency.
/**
* @see com.att.cdp.zones.NetworkService#getVLANTransparency()
*/
@SuppressWarnings("nls")
@Override
public List<Network> getVLANTransparency() throws ZoneException {
connect();
Context context = getContext();
trackRequest();
RequestState.put(RequestState.SERVICE, "Network");
RequestState.put(RequestState.SERVICE_URL, quantumConnector.getEndpoint());
ArrayList<Network> list = new ArrayList<>();
try {
Quantum client = quantumConnector.getClient();
VLANResource resource = client.vlans();
for (com.woorea.openstack.quantum.model.Network net : resource.list().execute()) {
list.add(new OpenStackNetwork(context, net));
}
} catch (OpenStackBaseException e) {
ExceptionMapper.mapException(e);
}
return list;
}
Aggregations