Package com.vmware.bdd.apitypes

Examples of com.vmware.bdd.apitypes.IpAllocEntryRead


            String ip = node.findNic(net).getIpv4Address();
            if (ip == null || ip.equals(Constants.NULL_IPV4_ADDRESS)) {
               // in case of errors during node creation (if possible)
               continue;
            }
            IpAllocEntryRead e = new IpAllocEntryRead();

            e.setClusterId(node.getNodeGroup().getCluster().getId());
            e.setClusterName(node.getNodeGroup().getCluster().getName());
            e.setNodeGroupId(node.getNodeGroup().getId());
            e.setNodeGroupName(node.getNodeGroup().getName());
            e.setNodeId(node.getId());
            e.setNodeName(node.getVmName());
            e.setIpAddress(ip);

            ipAllocEntries.add(e);
         }

         nr.setIpAllocEntries(ipAllocEntries);
View Full Code Here


      networkRead1.setAssignedIpBlocks(assignedIpBlocks);
      networkRead1.setGateway("192.1.1.0");
      networkRead1.setNetmask("255.255.0.0");
      List<IpAllocEntryRead> ipAllocEntries1 =
            new ArrayList<IpAllocEntryRead>();
      IpAllocEntryRead ipAllocEntry1 = new IpAllocEntryRead();
      ipAllocEntry1.setIpAddress("192.1.1.3");
      ipAllocEntry1.setNodeName("nodeName1");
      ipAllocEntry1.setNodeGroupName("nodeGroupName1");
      ipAllocEntry1.setClusterName("clusterName1");
      IpAllocEntryRead ipAllocEntry2 = new IpAllocEntryRead();
      ipAllocEntry2.setIpAddress("192.1.1.7");
      ipAllocEntry2.setNodeName("nodeName2");
      ipAllocEntry2.setNodeGroupName("nodeGroupName1");
      ipAllocEntry2.setClusterName("clusterName1");
      ipAllocEntries1.add(ipAllocEntry1);
      ipAllocEntries1.add(ipAllocEntry2);
      networkRead1.setIpAllocEntries(ipAllocEntries1);

      NetworkRead networkRead2 = new NetworkRead();
      networkRead2.setName("name2");
      networkRead2.setPortGroup("portGroup2");
      networkRead2.setDhcp(true);
      List<IpAllocEntryRead> ipAllocEntries2 =
            new ArrayList<IpAllocEntryRead>();
      IpAllocEntryRead ipAllocEntry3 = new IpAllocEntryRead();
      ipAllocEntry3.setIpAddress("192.1.10.3");
      ipAllocEntry3.setNodeName("nodeName3");
      ipAllocEntry3.setNodeGroupName("nodeGroupName2");
      ipAllocEntry3.setClusterName("clusterName2");
      IpAllocEntryRead ipAllocEntry4 = new IpAllocEntryRead();
      ipAllocEntry4.setIpAddress("192.1.10.7");
      ipAllocEntry4.setNodeName("nodeName4");
      ipAllocEntry4.setNodeGroupName("nodeGroupName2");
      ipAllocEntry4.setClusterName("clusterName2");
      ipAllocEntries2.add(ipAllocEntry3);
      ipAllocEntries2.add(ipAllocEntry4);
      networkRead2.setIpAllocEntries(ipAllocEntries2);
      getListNetwork(mapper, new NetworkRead[] { networkRead1, networkRead2 },
            true);
View Full Code Here

TOP

Related Classes of com.vmware.bdd.apitypes.IpAllocEntryRead

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.