Package com.abiquo.server.core.infrastructure.network

Examples of com.abiquo.server.core.infrastructure.network.ExternalIpsDto


   public void tearDownNetwork() {
      externalNetwork.delete();
   }

   public void testListIps() {
      ExternalIpsDto ipsDto = env.context.getApiContext().getApi().getInfrastructureApi()
            .listExternalIps(externalNetwork.unwrap(), IpOptions.builder().limit(1).build());
      int totalIps = ipsDto.getTotalSize();

      List<ExternalIp> ips = externalNetwork.listIps();

      assertEquals(ips.size(), totalIps);
   }
View Full Code Here


      List<ExternalIp> ips = externalNetwork.listIps(IpOptions.builder().limit(5).build());
      assertEquals(ips.size(), 5);
   }

   public void testListUnusedIps() {
      ExternalIpsDto ipsDto = env.context.getApiContext().getApi().getInfrastructureApi()
            .listExternalIps(externalNetwork.unwrap(), IpOptions.builder().limit(1).build());
      int totalIps = ipsDto.getTotalSize();

      List<ExternalIp> ips = externalNetwork.listUnusedIps();
      assertEquals(ips.size(), totalIps);
   }
View Full Code Here

    *      > http://community.abiquo.com/display/ABI20/Public+IPs+Resource#
    *      PublicIPsResource- ReturnthelistofIPsforaPublicNetwork</a>
    */
   @Override
   public List<ExternalIp> listIps(final IpOptions options) {
      ExternalIpsDto ips = context.getApi().getInfrastructureApi().listExternalIps(target, options);
      return wrap(context, ExternalIp.class, ips.getCollection());
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.infrastructure.network.ExternalIpsDto

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.