Examples of NetworkSummary


Examples of com.vmware.vim25.NetworkSummary

        vm.getServerConnection(), hmor);
    ConfigTarget cfg = envBrowser.queryConfigTarget(host);
    VirtualMachineNetworkInfo[] nets = cfg.getNetwork();
    for (int i = 0; nets!=null && i < nets.length; i++)
    {
      NetworkSummary netSummary = nets[i].getNetwork();
      if (netSummary.isAccessible() &&
          netSummary.getName().equalsIgnoreCase(netName))
      {
        return true;
      }
    }
    return false;
View Full Code Here

Examples of com.vmware.vim25.NetworkSummary

      nicBacking.port.switchUuid = dvPortgroupInfo.switchUuid;
      result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);
    }
    else
    {
      NetworkSummary netSummary = getHostNetworkSummaryByName(
               networkName, configTarget.network);
      VirtualEthernetCardNetworkBackingInfo nicBacking = new VirtualEthernetCardNetworkBackingInfo();
      nicBacking.network = netSummary.network;
      nicBacking.deviceName = netSummary.name;
      result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);
View Full Code Here

Examples of com.vmware.vim25.NetworkSummary

     }
  }

  private static NetworkSummary getHostNetworkSummaryByName(String networkName, VirtualMachineNetworkInfo[] hostNetworkList)
  {
    NetworkSummary result = null;
    boolean isNetworkExistingOnHost = false;

     // Check each of the provided network names against host networks to see if it exists on host
    for (VirtualMachineNetworkInfo netInfo : hostNetworkList)
    {
View Full Code Here

Examples of com.vmware.vim25.NetworkSummary

        ipPoolManager = serviceInstance.getIpPoolManager();
    }
   
    private static IpPool getIpPool(
            DistributedVirtualPortgroup portGroup, IpPool[] ipPools) {
        NetworkSummary summary = portGroup.getSummary();
        Integer poolid = summary.getIpPoolId();
        if (poolid == null) {
            s_logger.info("dvPg: " + portGroup.getName() +
                    " IpPool NOT configured");
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.