@Override
protected void readLunDisk(XmlNode node, LunDisk lun) {
lun.setDiskVmElements(Collections.singletonList(new DiskVmElement(lun.getId(), fullEntityOvfData.getVmBase().getId())));
LUNs luns = new LUNs();
consumeReadXmlAttribute(node, OVF_PREFIX + COLON + LUN_ID, val -> luns.setLUNId(val));
ArrayList<StorageServerConnections> lunConnections = new ArrayList<>();
for (XmlNode connNode : selectNodes(node, LUN_CONNECTION)) {
StorageServerConnections conn = new StorageServerConnections();
consumeReadXmlAttribute(connNode, OVF_PREFIX + COLON + LUNS_CONNECTION, val -> conn.setConnection(val));
consumeReadXmlAttribute(connNode, OVF_PREFIX + COLON + LUNS_IQN, val -> conn.setIqn(val));
consumeReadXmlAttribute(connNode, OVF_PREFIX + COLON + LUNS_PORT, val -> conn.setPort(val));
consumeReadXmlAttribute(connNode,
XSI_PREFIX + COLON + LUNS_STORAGE_TYPE,
val -> conn.setStorageType(StorageType.valueOf(val)));
consumeReadXmlAttribute(connNode, XSI_PREFIX + COLON + LUNS_PORTAL, val -> conn.setPortal(val));
lunConnections.add(conn);
}
luns.setLunConnections(lunConnections);
lun.setLun(luns);
DiskVmElement dve = lun.getDiskVmElementForVm(fullEntityOvfData.getVmBase().getId());
initGeneralDiskAttributes(node, lun, dve);
}