Package com.woorea.openstack.quantum.model

Examples of com.woorea.openstack.quantum.model.Networks


        // System.out.println(sub);
      } catch (Exception e) {
        System.out.println(e.getMessage());
      }

      Networks networks = quantum.networks().list().execute();

      for (Network network1 : networks) {
        System.out.println(network1);
      }
    } else {
View Full Code Here


      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!");
View Full Code Here

TOP

Related Classes of com.woorea.openstack.quantum.model.Networks

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.