use of com.iwave.ext.vmware.HostStorageAPI in project coprhd-controller by CoprHD.
the class SetMultipathPolicy method execute.
@Override
public void execute() throws Exception {
debug("Executing: %s", getDetail());
for (HostSystem host : hostDisks.keySet()) {
try {
HostStorageAPI storageAPI = new HostStorageAPI(host);
storageAPI.setMultipathPolicy(hostDisks.get(host), multipathPolicy);
} catch (Exception e) {
logWarn("vmware.support.multipath.policy.failed", multipathPolicy, hostDisks.get(host).getCanonicalName(), host.getName());
}
}
}
Aggregations