Package com.vmware.vim.binding.impl.vim.vm.device

Examples of com.vmware.vim.binding.impl.vim.vm.device.VirtualDeviceSpecImpl


      // The key we specify does not matter, and will get reassigned, so we start with -1
      // and go lower (the system assigned keys are positive). Without specifying the keys,
      // multiple updates in a single call will not work.
      vmdk.setKey(key);
      key--;
      VirtualDeviceSpec spec = new VirtualDeviceSpecImpl();
      spec.setOperation(VirtualDeviceSpec.Operation.add);
      if (createDisk) {
         spec.setFileOperation(VirtualDeviceSpec.FileOperation.create);
      }
      spec.setDevice(vmdk);
      return spec;
   }
View Full Code Here


            // set mac address
            ((VirtualEthernetCard) nic).setAddressType("Manual");
            ((VirtualEthernetCard) nic).setMacAddress(macAddr);

            VirtualDeviceSpec deviceSpec = new VirtualDeviceSpecImpl();
            deviceSpec.setOperation(VirtualDeviceSpec.Operation.edit);
            deviceSpec.setDevice(nic);

            changes.add(deviceSpec);
         }
      }
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.impl.vim.vm.device.VirtualDeviceSpecImpl

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.