public Task mergeDvs_Task(DistributedVirtualSwitch dvs) throws InvalidHostState, DvsFault, NotFound, ResourceInUse, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().mergeDvs_Task(getMOR(), dvs.getMOR()); return new Task(getServerConnection(), taskMor); }
public DistributedVirtualPortgroup[] getPortgroup() { ManagedObjectReference[] pgMors = (ManagedObjectReference[]) getCurrentProperty("portgroup"); if(pgMors==null) { return new DistributedVirtualPortgroup[]{}; } DistributedVirtualPortgroup[] dvpgs = new DistributedVirtualPortgroup[pgMors.length]; for(int i=0; i< pgMors.length; i++) { dvpgs[i] = new DistributedVirtualPortgroup(getServerConnection(), pgMors[i]); } return dvpgs; }
/** * @since SDK5.0 */ public void removeNetworkResourcePool(String[] key) throws DvsFault, NotFound, InvalidName, ResourceInUse, RuntimeFault, RemoteException { getVimService().removeNetworkResourcePool(getMOR(), key); }
vlan.setInherited(false); vlan.setVlanId(0); Task task_pg = dvs.addDVPortgroup_Task(dvpgs); ManagedObjectReference pgMor = (ManagedObjectReference) ti.getResult(); DistributedVirtualPortgroup pg = (DistributedVirtualPortgroup) MorUtil.createExactManagedEntity(dvs.getServerConnection(), pgMor); return pg;
/** @since SDK5.1 */ public DVSRuntimeInfo getRuntime() { return (DVSRuntimeInfo) getCurrentProperty("runtime"); }
public DVSManagerDvsConfigTarget queryDvsConfigTarget(HostSystem host, DistributedVirtualSwitch dvs) throws RuntimeFault, RemoteException { return getVimService().queryDvsConfigTarget(getMOR(), host==null? null : host.getMOR(), dvs==null? null : dvs.getMOR()); }
public DistributedVirtualSwitch queryDvsByUuid(String uuid) throws NotFound, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().queryDvsByUuid(getMOR(), uuid); return new DistributedVirtualSwitch(getServerConnection(), mor); }
/** @since SDK4.1 */ public void updateNetworkResourcePool(DVSNetworkResourcePoolConfigSpec[] configSpec) throws DvsFault, NotFound, InvalidName, RuntimeFault, RemoteException { getVimService().updateNetworkResourcePool(getMOR(), configSpec); }
vlan.setInherited(false); vlan.setVlanId(0); Task task_pg = dvs.addDVPortgroup_Task(dvpgs); ManagedObjectReference pgMor = (ManagedObjectReference) ti.getResult(); DistributedVirtualPortgroup pg = (DistributedVirtualPortgroup) MorUtil.createExactManagedEntity(dvs.getServerConnection(), pgMor); return pg;
/** @since SDK4.1 */ public DVSNetworkResourcePool[] getNetworkResourcePool() { return (DVSNetworkResourcePool[]) getCurrentProperty("networkResourcePool"); }
public HostSystem[] queryCompatibleHostForExistingDvs(ManagedEntity container, boolean recursive, DistributedVirtualSwitch dvs) throws RuntimeFault, RemoteException { ManagedObjectReference[] mors = getVimService().queryCompatibleHostForExistingDvs(getMOR(), container.getMOR(), recursive, dvs.getMOR()); HostSystem[] hosts = new HostSystem[mors.length]; for(int i=0; i<hosts.length; i++) { hosts[i] = new HostSystem(getServerConnection(), mors[i]); } return hosts; }
public Task performDvsProductSpecOperation_Task(String operation, DistributedVirtualSwitchProductSpec productSpec) throws TaskInProgress, InvalidState, DvsFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().performDvsProductSpecOperation_Task(getMOR(), operation, productSpec); return new Task(getServerConnection(), taskMor); }
/** * @since SDK5.0 */ public void addNetworkResourcePool(DVSNetworkResourcePoolConfigSpec[] configSpec) throws DvsFault, InvalidName, RuntimeFault, RemoteException { getVimService().addNetworkResourcePool(getMOR(), configSpec); }
public DVSCapability getCapability() { return (DVSCapability) getCurrentProperty("capability"); }
/** @since SDK5.1 */ public Task dVSRollback_Task(EntityBackupConfig spec) throws RollbackFailure, DvsFault, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().dVSRollback_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
/** @since SDK4.1 */ public void enableNetworkResourceManagement(boolean enable) throws DvsFault, RuntimeFault, RemoteException { getVimService().enableNetworkResourceManagement(getMOR(), enable); }
public DVSSummary getSummary() { return (DVSSummary) getCurrentProperty("summary"); }
public Task addDVPortgroup_Task(DVPortgroupConfigSpec[] spec) throws DvsFault, DuplicateName, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().addDVPortgroup_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
public String[] fetchDVPortKeys(DistributedVirtualSwitchPortCriteria criteria) throws RuntimeFault, RemoteException { return getVimService().fetchDVPortKeys(getMOR(), criteria); }
public String getUuid() { return (String) getCurrentProperty("uuid"); }