Package org.jclouds.vcloud.domain.network

Examples of org.jclouds.vcloud.domain.network.IpRange


      } else if (SaxUtils.equalsOrSuffix(qName, "EndAddress")) {
         endAddress = currentOrNull();
      } else if (SaxUtils.equalsOrSuffix(qName, "AllocatedIpAddress")) {
         allocatedIpAddresses.add(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "IpRange")) {
         ipRanges.add(new IpRange(startAddress, endAddress));
         this.startAddress = null;
         this.endAddress = null;
      } else if (SaxUtils.equalsOrSuffix(qName, "IsInherited")) {
         inherited = Boolean.parseBoolean(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "Gateway")) {
View Full Code Here


      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(false, "192.168.15.1", "255.255.255.0",
               "23.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("192.168.15.100", "192.168.15.199")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.ISOLATED);
      assert result.getConfiguration().getFeatures() != null;

      assertEquals(result.getConfiguration().getFeatures().getDhcpService(), new DhcpService(false, 3600, 7200,
               new IpRange("192.168.15.2", "192.168.15.99")));
      assertEquals(result.getConfiguration().getFeatures().getFirewallService(), null);
      assertEquals(result.getConfiguration().getFeatures().getNatService(), null);

      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(true, "174.47.101.161", "255.255.255.224",
               "24.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("174.47.101.164", "174.47.101.190")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.BRIDGED);
      assert result.getConfiguration().getFeatures() == null;
      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

      } else if (SaxUtils.equalsOrSuffix(qName, "EndAddress")) {
         endAddress = currentOrNull();
      } else if (SaxUtils.equalsOrSuffix(qName, "AllocatedIpAddress")) {
         allocatedIpAddresses.add(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "IpRange")) {
         ipRanges.add(new IpRange(startAddress, endAddress));
         this.startAddress = null;
         this.endAddress = null;
      } else if (SaxUtils.equalsOrSuffix(qName, "IsInherited")) {
         inherited = Boolean.parseBoolean(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "Gateway")) {
View Full Code Here

      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(false, "192.168.15.1", "255.255.255.0",
               "23.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("192.168.15.100", "192.168.15.199")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.ISOLATED);
      assert result.getConfiguration().getFeatures() != null;

      assertEquals(result.getConfiguration().getFeatures().getDhcpService(), new DhcpService(false, 3600, 7200,
               new IpRange("192.168.15.2", "192.168.15.99")));
      assertEquals(result.getConfiguration().getFeatures().getFirewallService(), null);
      assertEquals(result.getConfiguration().getFeatures().getNatService(), null);

      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(true, "174.47.101.161", "255.255.255.224",
               "24.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("174.47.101.164", "174.47.101.190")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.BRIDGED);
      assert result.getConfiguration().getFeatures() == null;
      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

      } else if (SaxUtils.equalsOrSuffix(qName, "EndAddress")) {
         endAddress = currentOrNull();
      } else if (SaxUtils.equalsOrSuffix(qName, "AllocatedIpAddress")) {
         allocatedIpAddresses.add(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "IpRange")) {
         ipRanges.add(new IpRange(startAddress, endAddress));
         this.startAddress = null;
         this.endAddress = null;
      } else if (SaxUtils.equalsOrSuffix(qName, "IsInherited")) {
         inherited = Boolean.parseBoolean(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "Gateway")) {
View Full Code Here

      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(true, "174.47.101.161", "255.255.255.224",
               "24.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("174.47.101.164", "174.47.101.190")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.BRIDGED);
      assert result.getConfiguration().getFeatures() == null;
      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

      } else if (SaxUtils.equalsOrSuffix(qName, "EndAddress")) {
         endAddress = currentOrNull();
      } else if (SaxUtils.equalsOrSuffix(qName, "AllocatedIpAddress")) {
         allocatedIpAddresses.add(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "IpRange")) {
         ipRanges.add(new IpRange(startAddress, endAddress));
         this.startAddress = null;
         this.endAddress = null;
      } else if (SaxUtils.equalsOrSuffix(qName, "IsInherited")) {
         inherited = Boolean.parseBoolean(currentOrNull());
      } else if (SaxUtils.equalsOrSuffix(qName, "Gateway")) {
View Full Code Here

      assertEquals(result.getTasks(), ImmutableList.of());
      assert result.getConfiguration() != null;

      assertEquals(result.getConfiguration().getIpScope(), new IpScope(false, "192.168.15.1", "255.255.255.0",
               "23.172.173.113", null, null,
               ImmutableSet.<IpRange> of(new IpRange("192.168.15.100", "192.168.15.199")), ImmutableSet.<String> of()));
      assertEquals(result.getConfiguration().getParentNetwork(), null);
      assertEquals(result.getConfiguration().getFenceMode(), FenceMode.ISOLATED);
      assert result.getConfiguration().getFeatures() != null;

      assertEquals(result.getConfiguration().getFeatures().getDhcpService(), new DhcpService(false, 3600, 7200,
               new IpRange("192.168.15.2", "192.168.15.99")));
      assertEquals(result.getConfiguration().getFeatures().getFirewallService(), null);
      assertEquals(result.getConfiguration().getFeatures().getNatService(), null);

      assertEquals(result.getNetworkPool(), null);
      assertEquals(result.getAllowedExternalIpAddresses(), ImmutableSet.<String> of());
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.domain.network.IpRange

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.