use of org.ovirt.engine.api.model.IscsiDetailss in project ovirt-engine by oVirt.
the class BackendHostResource method mapTargets.
private Action mapTargets(Action action, List<StorageServerConnections> targets) {
if (targets != null) {
Action.IscsiTargetsList iscsiTargets = new Action.IscsiTargetsList();
IscsiDetailss iscsiDetailss = new IscsiDetailss();
for (StorageServerConnections cnx : targets) {
LogicalUnit logicalUnit = map(cnx);
// The iscsiTargets property is replaced by discoveredTargets. The property is preserved
// for backward compatibility, and should be removed in version 5 of the API.
iscsiTargets.getIscsiTargets().add(logicalUnit.getTarget());
iscsiDetailss.getIscsiDetailss().add(mapLogicalUnitToIscsiDetails(logicalUnit));
}
action.setIscsiTargets(iscsiTargets);
action.setDiscoveredTargets(iscsiDetailss);
}
return action;
}
Aggregations