use of com.vmware.vim25.HostMultipathInfoFixedLogicalUnitPolicy in project coprhd-controller by CoprHD.
the class HostStorageAPI method createMultipathPolicy.
/**
* Create a multipath policy based on the passed policy name
*
* @param name policy name
* @return multipath policy
*/
public HostMultipathInfoLogicalUnitPolicy createMultipathPolicy(String name) {
if (StringUtils.equalsIgnoreCase(name, VMW_PSP_FIXED)) {
HostMultipathInfoFixedLogicalUnitPolicy policy = new HostMultipathInfoFixedLogicalUnitPolicy();
policy.setPolicy(name);
policy.setPrefer("");
return policy;
} else {
HostMultipathInfoLogicalUnitPolicy policy = new HostMultipathInfoLogicalUnitPolicy();
policy.setPolicy(name);
return policy;
}
}
Aggregations