access = keystone.tokens().authenticate(new TokenAuthentication(access.getToken().getId())).withTenantId(tenants.getList().get(0).getId()).execute();
Quantum quantum = new Quantum(KeystoneUtils.findEndpointURL(access.getServiceCatalog(), "network", null, "public"));
quantum.setTokenProvider(new OpenStackSimpleTokenProvider(access.getToken().getId()));
Networks networks = quantum.networks().list().execute();
for (Network network : networks) {
System.out.println(network);
}
} else {
System.out.println("No tenants found!");