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

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


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

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

      List<UnmanagedIp> ips = unmanagedNetwork.listIps();

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


      // Unmanaged networks do not have IPs until attached to VMs
      assertEquals(ips.size(), 0);
   }

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

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

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

TOP

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

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.