Skip to content

Commit 1ce4d62

Browse files
committed
Fix cast error from List<?> to array.
1 parent b9cf5c2 commit 1ce4d62

15 files changed

Lines changed: 92 additions & 83 deletions

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,20 +390,20 @@ public List<ManagedObjectReference> addHostToPodCluster(VmwareContext serviceCon
390390
List<ManagedObjectReference> returnedHostList = new ArrayList<ManagedObjectReference>();
391391

392392
if(mor.getType().equals("ComputeResource")) {
393-
ManagedObjectReference[] hosts = (ManagedObjectReference[])serviceContext.getVimClient().getDynamicProperty(mor, "host");
394-
assert(hosts != null);
393+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)serviceContext.getVimClient().getDynamicProperty(mor, "host");
394+
assert(hosts != null && hosts.size() > 0);
395395

396396
// For ESX host, we need to enable host firewall to allow VNC access
397-
HostMO hostMo = new HostMO(serviceContext, hosts[0]);
397+
HostMO hostMo = new HostMO(serviceContext, hosts.get(0));
398398

399399
prepareHost(hostMo, privateTrafficLabel);
400-
returnedHostList.add(hosts[0]);
400+
returnedHostList.add(hosts.get(0));
401401
return returnedHostList;
402402
} else if(mor.getType().equals("ClusterComputeResource")) {
403-
ManagedObjectReference[] hosts = (ManagedObjectReference[])serviceContext.getVimClient().getDynamicProperty(mor, "host");
403+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)serviceContext.getVimClient().getDynamicProperty(mor, "host");
404404
assert(hosts != null);
405405

406-
if(hosts.length > _maxHostsPerCluster) {
406+
if(hosts.size() > _maxHostsPerCluster) {
407407
String msg = "vCenter cluster size is too big (current configured cluster size: " + _maxHostsPerCluster + ")";
408408
s_logger.error(msg);
409409
throw new DiscoveredWithErrorException(msg);

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareContextFactory.java‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,36 @@
1616
// under the License.
1717
package com.cloud.hypervisor.vmware.resource;
1818

19+
import javax.annotation.PostConstruct;
20+
import javax.inject.Inject;
21+
1922
import org.apache.log4j.Logger;
23+
import org.springframework.stereotype.Component;
2024

2125
import com.cloud.hypervisor.vmware.manager.VmwareManager;
22-
import com.cloud.hypervisor.vmware.manager.VmwareManagerImpl;
2326
import com.cloud.hypervisor.vmware.util.VmwareClient;
2427
import com.cloud.hypervisor.vmware.util.VmwareContext;
2528
import com.cloud.utils.StringUtils;
26-
import com.cloud.utils.component.ComponentContext;
27-
2829

30+
@Component
2931
public class VmwareContextFactory {
3032

3133
private static final Logger s_logger = Logger.getLogger(VmwareContextFactory.class);
3234

3335
private static volatile int s_seq = 1;
3436
private static VmwareManager s_vmwareMgr;
3537

38+
@Inject VmwareManager _vmwareMgr;
39+
3640
static {
3741
// skip certificate check
3842
System.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory");
39-
s_vmwareMgr = ComponentContext.inject(VmwareManagerImpl.class);
43+
//s_vmwareMgr = ComponentContext.inject(VmwareManagerImpl.class);
44+
}
45+
46+
@PostConstruct
47+
void init() {
48+
s_vmwareMgr = _vmwareMgr;
4049
}
4150

4251
public static VmwareContext create(String vCenterAddress, String vCenterUserName, String vCenterPassword) throws Exception {

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4494,14 +4494,14 @@ private HashMap<String, VmStatsEntry> getVmStats(List<String> vmNames) throws Ex
44944494
PerfCounterInfo rxPerfCounterInfo = null;
44954495
PerfCounterInfo txPerfCounterInfo = null;
44964496

4497-
PerfCounterInfo[] cInfo = (PerfCounterInfo[]) getServiceContext().getVimClient().getDynamicProperty(perfMgr, "perfCounter");
4498-
for(int i=0; i<cInfo.length; ++i) {
4499-
if ("net".equalsIgnoreCase(cInfo[i].getGroupInfo().getKey())) {
4500-
if ("transmitted".equalsIgnoreCase(cInfo[i].getNameInfo().getKey())) {
4501-
txPerfCounterInfo = cInfo[i];
4497+
List<PerfCounterInfo> cInfo = (List<PerfCounterInfo>) getServiceContext().getVimClient().getDynamicProperty(perfMgr, "perfCounter");
4498+
for(PerfCounterInfo info : cInfo) {
4499+
if ("net".equalsIgnoreCase(info.getGroupInfo().getKey())) {
4500+
if ("transmitted".equalsIgnoreCase(info.getNameInfo().getKey())) {
4501+
txPerfCounterInfo = info;
45024502
}
4503-
if ("received".equalsIgnoreCase(cInfo[i].getNameInfo().getKey())) {
4504-
rxPerfCounterInfo = cInfo[i];
4503+
if ("received".equalsIgnoreCase(info.getNameInfo().getKey())) {
4504+
rxPerfCounterInfo = info;
45054505
}
45064506
}
45074507
}

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/ClusterMO.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ public ManagedObjectReference mountDatastore(boolean vmfsDatastore, String poolH
295295

296296
ManagedObjectReference morDs = null;
297297
ManagedObjectReference morDsFirst = null;
298-
ManagedObjectReference[] hosts = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(_mor, "host");
299-
if(hosts != null && hosts.length > 0) {
298+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "host");
299+
if(hosts != null && hosts.size() > 0) {
300300
for(ManagedObjectReference morHost : hosts) {
301301
HostMO hostMo = new HostMO(_context, morHost);
302302
morDs = hostMo.mountDatastore(vmfsDatastore, poolHostAddress, poolHostPort, poolPath, poolUuid);
@@ -328,8 +328,8 @@ public void unmountDatastore(String poolUuid) throws Exception {
328328
if(s_logger.isTraceEnabled())
329329
s_logger.trace("vCenter API trace - unmountDatastore(). target MOR: " + _mor.getValue() + ", poolUuid: " + poolUuid);
330330

331-
ManagedObjectReference[] hosts = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(_mor, "host");
332-
if(hosts != null && hosts.length > 0) {
331+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "host");
332+
if(hosts != null && hosts.size() > 0) {
333333
for(ManagedObjectReference morHost : hosts) {
334334
HostMO hostMo = new HostMO(_context, morHost);
335335
hostMo.unmountDatastore(poolUuid);
@@ -473,8 +473,8 @@ public VmwareHypervisorHostResourceSummary getHyperHostResourceSummary() throws
473473

474474
// TODO, need to use traversal to optimize retrieve of
475475
int cpuNumInCpuThreads = 1;
476-
ManagedObjectReference[] hosts = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(_mor, "host");
477-
if(hosts != null && hosts.length > 0) {
476+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "host");
477+
if(hosts != null && hosts.size() > 0) {
478478
for(ManagedObjectReference morHost : hosts) {
479479
HostMO hostMo = new HostMO(_context, morHost);
480480
HostHardwareSummary hardwareSummary = hostMo.getHostHardwareSummary();
@@ -498,9 +498,9 @@ public VmwareHypervisorHostNetworkSummary getHyperHostNetworkSummary(String esxS
498498
if(s_logger.isTraceEnabled())
499499
s_logger.trace("vCenter API trace - getHyperHostNetworkSummary(). target MOR: " + _mor.getValue() + ", mgmtPortgroup: " + esxServiceConsolePort);
500500

501-
ManagedObjectReference[] hosts = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(_mor, "host");
502-
if(hosts != null && hosts.length > 0) {
503-
VmwareHypervisorHostNetworkSummary summary = new HostMO(_context, hosts[0]).getHyperHostNetworkSummary(esxServiceConsolePort);
501+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "host");
502+
if(hosts != null && hosts.size() > 0) {
503+
VmwareHypervisorHostNetworkSummary summary = new HostMO(_context, hosts.get(0)).getHyperHostNetworkSummary(esxServiceConsolePort);
504504

505505
if(s_logger.isTraceEnabled())
506506
s_logger.trace("vCenter API trace - getHyperHostResourceSummary() done(successfully)");

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/CustomFieldsManagerMO.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// under the License.
1717
package com.cloud.hypervisor.vmware.mo;
1818

19+
import java.util.List;
20+
1921
import com.cloud.hypervisor.vmware.util.VmwareContext;
2022
import com.vmware.vim25.CustomFieldDef;
2123
import com.vmware.vim25.ManagedObjectReference;
@@ -48,12 +50,12 @@ public void setField(ManagedObjectReference morEntity, int key, String value) th
4850
_context.getService().setField(getMor(), morEntity, key, value);
4951
}
5052

51-
public CustomFieldDef[] getFields() throws Exception {
52-
return (CustomFieldDef[])_context.getVimClient().getDynamicProperty(getMor(), "field");
53+
public List<CustomFieldDef> getFields() throws Exception {
54+
return (List<CustomFieldDef>)_context.getVimClient().getDynamicProperty(getMor(), "field");
5355
}
5456

5557
public int getCustomFieldKey(String morType, String fieldName) throws Exception {
56-
CustomFieldDef[] fields = getFields();
58+
List<CustomFieldDef> fields = getFields();
5759
if(fields != null) {
5860
for(CustomFieldDef field : fields) {
5961
if(field.getName().equals(fieldName) && field.getManagedObjectType().equals(morType))

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/HostDatastoreSystemMO.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public ManagedObjectReference findDatastore(String name) throws Exception {
7878
public ManagedObjectReference findDatastoreByUrl(String storeUrl) throws Exception {
7979
assert(storeUrl != null);
8080

81-
ManagedObjectReference[] datastores = getDatastores();
82-
if(datastores != null && datastores.length > 0) {
81+
List<ManagedObjectReference> datastores = getDatastores();
82+
if(datastores != null && datastores.size() > 0) {
8383
for(ManagedObjectReference morDatastore : datastores) {
8484
NasDatastoreInfo info = getNasDatastoreInfo(morDatastore);
8585
if(info != null) {
@@ -99,8 +99,8 @@ public ManagedObjectReference findDatastoreByUrl(String storeUrl) throws Excepti
9999
public ManagedObjectReference findDatastoreByExportPath(String exportPath) throws Exception {
100100
assert(exportPath != null);
101101

102-
ManagedObjectReference[] datastores = getDatastores();
103-
if(datastores != null && datastores.length > 0) {
102+
List<ManagedObjectReference> datastores = getDatastores();
103+
if(datastores != null && datastores.size() > 0) {
104104
for(ManagedObjectReference morDatastore : datastores) {
105105
DatastoreMO dsMo = new DatastoreMO(_context, morDatastore);
106106
if(dsMo.getInventoryPath().equals(exportPath))
@@ -145,8 +145,8 @@ public ManagedObjectReference createNfsDatastore(String host, int port,
145145
return _context.getService().createNasDatastore(_mor, spec);
146146
}
147147

148-
public ManagedObjectReference[] getDatastores() throws Exception {
149-
return (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(
148+
public List<ManagedObjectReference> getDatastores() throws Exception {
149+
return (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(
150150
_mor, "datastore");
151151
}
152152

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java‎

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,14 @@ public HostConfigManager getHostConfigManager() throws Exception {
8484
return (HostConfigManager)_context.getVimClient().getDynamicProperty(_mor, "configManager");
8585
}
8686

87-
public VirtualNicManagerNetConfig[] getHostVirtualNicManagerNetConfig() throws Exception {
88-
VirtualNicManagerNetConfig[] netConfigs = (VirtualNicManagerNetConfig[])_context.getVimClient().getDynamicProperty(_mor,
87+
public List<VirtualNicManagerNetConfig> getHostVirtualNicManagerNetConfig() throws Exception {
88+
return (List<VirtualNicManagerNetConfig>)_context.getVimClient().getDynamicProperty(_mor,
8989
"config.virtualNicManagerInfo.netConfig");
90-
return netConfigs;
9190
}
9291

93-
public HostIpRouteEntry[] getHostIpRouteEntries() throws Exception {
94-
HostIpRouteEntry[] entries = (HostIpRouteEntry[])_context.getVimClient().getDynamicProperty(_mor,
92+
public List<HostIpRouteEntry> getHostIpRouteEntries() throws Exception {
93+
return (List<HostIpRouteEntry>)_context.getVimClient().getDynamicProperty(_mor,
9594
"config.network.routeTableInfo.ipRoute");
96-
return entries;
9795
}
9896

9997
public HostListSummaryQuickStats getHostQuickStats() throws Exception {
@@ -142,7 +140,7 @@ public ClusterDasConfigInfo getDasConfig() throws Exception {
142140

143141
@Override
144142
public String getHyperHostDefaultGateway() throws Exception {
145-
HostIpRouteEntry[] entries = getHostIpRouteEntries();
143+
List<HostIpRouteEntry> entries = getHostIpRouteEntries();
146144
for(HostIpRouteEntry entry : entries) {
147145
if(entry.getNetwork().equalsIgnoreCase("0.0.0.0"))
148146
return entry.getGateway();
@@ -222,7 +220,7 @@ public ManagedObjectReference getHyperHostCluster() throws Exception {
222220
}
223221

224222
public ManagedObjectReference[] getHostLocalDatastore() throws Exception {
225-
ManagedObjectReference[] datastores = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(
223+
List<ManagedObjectReference> datastores = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(
226224
_mor, "datastore");
227225
List<ManagedObjectReference> l = new ArrayList<ManagedObjectReference>();
228226
if(datastores != null) {
@@ -236,7 +234,7 @@ public ManagedObjectReference[] getHostLocalDatastore() throws Exception {
236234
}
237235

238236
public HostVirtualSwitch getHostVirtualSwitchByName(String name) throws Exception {
239-
HostVirtualSwitch[] switches = (HostVirtualSwitch[])_context.getVimClient().getDynamicProperty(
237+
List<HostVirtualSwitch> switches = (List<HostVirtualSwitch>)_context.getVimClient().getDynamicProperty(
240238
_mor, "config.network.vswitch");
241239

242240
if(switches != null) {
@@ -248,8 +246,8 @@ public HostVirtualSwitch getHostVirtualSwitchByName(String name) throws Exceptio
248246
return null;
249247
}
250248

251-
public HostVirtualSwitch[] getHostVirtualSwitch() throws Exception {
252-
return (HostVirtualSwitch[])_context.getVimClient().getDynamicProperty(_mor, "config.network.vswitch");
249+
public List<HostVirtualSwitch> getHostVirtualSwitch() throws Exception {
250+
return (List<HostVirtualSwitch>)_context.getVimClient().getDynamicProperty(_mor, "config.network.vswitch");
253251
}
254252

255253
public AboutInfo getHostAboutInfo() throws Exception {
@@ -285,7 +283,7 @@ public HostVirtualSwitch getPortGroupVirtualSwitch(String portGroupName) throws
285283

286284
public HostVirtualSwitch getVirtualSwitchByName(String vSwitchName) throws Exception {
287285

288-
HostVirtualSwitch[] vSwitchs = getHostVirtualSwitch();
286+
List<HostVirtualSwitch> vSwitchs = getHostVirtualSwitch();
289287
if(vSwitchs != null) {
290288
for(HostVirtualSwitch vSwitch: vSwitchs) {
291289
if(vSwitch.getName().equals(vSwitchName))
@@ -327,7 +325,7 @@ public HostPortGroupSpec getPortGroupSpec(String portGroupName) throws Exception
327325
public String getPortGroupNameByNicType(HostVirtualNicType nicType) throws Exception {
328326
assert(nicType != null);
329327

330-
VirtualNicManagerNetConfig[] netConfigs = (VirtualNicManagerNetConfig[])_context.getVimClient().getDynamicProperty(_mor,
328+
List<VirtualNicManagerNetConfig> netConfigs = (List<VirtualNicManagerNetConfig>)_context.getVimClient().getDynamicProperty(_mor,
331329
"config.virtualNicManagerInfo.netConfig");
332330

333331
if(netConfigs != null) {
@@ -448,10 +446,10 @@ public ManagedObjectReference getNetworkMor(String portGroupName) throws Excepti
448446
return null;
449447
}
450448

451-
public ManagedObjectReference[] getVmMorsOnNetwork(String portGroupName) throws Exception {
449+
public List<ManagedObjectReference> getVmMorsOnNetwork(String portGroupName) throws Exception {
452450
ManagedObjectReference morNetwork = getNetworkMor(portGroupName);
453451
if(morNetwork != null)
454-
return (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(morNetwork, "vm");
452+
return (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(morNetwork, "vm");
455453
return null;
456454
}
457455

@@ -703,25 +701,25 @@ public boolean createBlankVm(String vmName, int cpuCount, int cpuSpeedMHz, int c
703701
public ManagedObjectReference getExistingDataStoreOnHost(boolean vmfsDatastore, String hostAddress,
704702
int hostPort, String path, String uuid, HostDatastoreSystemMO hostDatastoreSystemMo) {
705703
// First retrieve the list of Datastores on the host.
706-
ManagedObjectReference[] morArray;
704+
List<ManagedObjectReference> morArray;
707705
try {
708706
morArray = hostDatastoreSystemMo.getDatastores();
709707
} catch (Exception e) {
710708
s_logger.info("Failed to retrieve list of Managed Object References");
711709
return null;
712710
}
713711
// Next, get all the NAS datastores from this array of datastores.
714-
if (morArray.length > 0) {
712+
if (morArray.size() > 0) {
715713
int i;
716-
for (i = 0; i < morArray.length; i++) {
714+
for (i = 0; i < morArray.size(); i++) {
717715
NasDatastoreInfo nasDS;
718716
try {
719-
nasDS = hostDatastoreSystemMo.getNasDatastoreInfo(morArray[i]);
717+
nasDS = hostDatastoreSystemMo.getNasDatastoreInfo(morArray.get(i));
720718
if (nasDS != null) {
721719
//DatastoreInfo info = (DatastoreInfo)_context.getServiceUtil().getDynamicProperty(morDatastore, "info");
722720
if (nasDS.getNas().getRemoteHost().equalsIgnoreCase(hostAddress) &&
723721
nasDS.getNas().getRemotePath().equalsIgnoreCase(path)) {
724-
return morArray[i];
722+
return morArray.get(i);
725723
}
726724
}
727725
} catch (Exception e) {
@@ -861,13 +859,13 @@ public VmwareHypervisorHostNetworkSummary getHyperHostNetworkSummary(String mana
861859
VmwareHypervisorHostNetworkSummary summary = new VmwareHypervisorHostNetworkSummary();
862860

863861
if(this.getHostType() == VmwareHostType.ESXi) {
864-
VirtualNicManagerNetConfig[] netConfigs = (VirtualNicManagerNetConfig[])_context.getVimClient().getDynamicProperty(_mor,
862+
List<VirtualNicManagerNetConfig> netConfigs = (List<VirtualNicManagerNetConfig>)_context.getVimClient().getDynamicProperty(_mor,
865863
"config.virtualNicManagerInfo.netConfig");
866864
assert(netConfigs != null);
867865

868-
for(int i = 0; i < netConfigs.length; i++) {
869-
if(netConfigs[i].getNicType().equals("management")) {
870-
for(HostVirtualNic nic : netConfigs[i].getCandidateVnic()) {
866+
for(VirtualNicManagerNetConfig netConfig : netConfigs) {
867+
if(netConfig.getNicType().equals("management")) {
868+
for(HostVirtualNic nic : netConfig.getCandidateVnic()) {
871869
if(nic.getPortgroup().equals(managementPortGroup)) {
872870
summary.setHostIp(nic.getSpec().getIp().getIpAddress());
873871
summary.setHostNetmask(nic.getSpec().getIp().getSubnetMask());
@@ -882,7 +880,7 @@ public VmwareHypervisorHostNetworkSummary getHyperHostNetworkSummary(String mana
882880
}
883881
} else {
884882
// try with ESX path
885-
HostVirtualNic[] hostVNics = (HostVirtualNic[])_context.getVimClient().getDynamicProperty(_mor,
883+
List<HostVirtualNic> hostVNics = (List<HostVirtualNic>)_context.getVimClient().getDynamicProperty(_mor,
886884
"config.network.consoleVnic");
887885

888886
if(hostVNics != null) {

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public static Pair<ManagedObjectReference, String> prepareNetwork(String vSwitch
625625
try {
626626
if(lock.lock(DEFAULT_LOCK_TIMEOUT_SECONDS)) {
627627
try {
628-
ManagedObjectReference[] hosts = (ManagedObjectReference[])hostMo.getContext().getVimClient().getDynamicProperty(morParent, "host");
628+
List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)hostMo.getContext().getVimClient().getDynamicProperty(morParent, "host");
629629
if(hosts != null) {
630630
for(ManagedObjectReference otherHost: hosts) {
631631
if(!otherHost.getValue().equals(hostMo.getMor().getValue())) {

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/NetworkMO.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// under the License.
1717
package com.cloud.hypervisor.vmware.mo;
1818

19+
import java.util.List;
20+
1921
import com.cloud.hypervisor.vmware.util.VmwareContext;
2022
import com.vmware.vim25.ManagedObjectReference;
2123

@@ -32,8 +34,7 @@ public void destroyNetwork() throws Exception {
3234
_context.getService().destroyNetwork(_mor);
3335
}
3436

35-
public ManagedObjectReference[] getVMsOnNetwork() throws Exception {
36-
ManagedObjectReference[] vms = (ManagedObjectReference[])_context.getVimClient().getDynamicProperty(_mor, "vm");
37-
return vms;
37+
public List<ManagedObjectReference> getVMsOnNetwork() throws Exception {
38+
return (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "vm");
3839
}
3940
}

0 commit comments

Comments
 (0)