Omer Frenkel has posted comments on this change.
Change subject: core: treat 'special' devices as managed when importing
templates
......................................................................
Patch Set 2:
(2 comments)
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfTemplateReader.java
Line 151: case 0:
Line 152: boolean addAsManaged = false;
Line 153: if (node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS) != null
Line 154: &&
StringUtils.isNotEmpty(node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS).InnerText)) {
Line 155: VmDeviceGeneralType type =
VmDeviceGeneralType.forValue(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS).InnerText));
Done
Line 156: String device =
String.valueOf(node.SelectSingleNode(OvfProperties.VMD_DEVICE,
_xmlNS).InnerText);
Line 157: // special devices are treated as managed devices
but still have the OTHER OVF ResourceType
Line 158: addAsManaged =
VmDeviceCommonUtils.isSpecialDevice(device, type);
Line 159: }
Line 152: boolean addAsManaged = false;
Line 153: if (node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS) != null
Line 154: &&
StringUtils.isNotEmpty(node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS).InnerText)) {
Line 155: VmDeviceGeneralType type =
VmDeviceGeneralType.forValue(String.valueOf(node.SelectSingleNode(OvfProperties.VMD_TYPE,
_xmlNS).InnerText));
Line 156: String device =
String.valueOf(node.SelectSingleNode(OvfProperties.VMD_DEVICE,
_xmlNS).InnerText);
Done
Line 157: // special devices are treated as managed devices
but still have the OTHER OVF ResourceType
Line 158: addAsManaged =
VmDeviceCommonUtils.isSpecialDevice(device, type);
Line 159: }
Line 160: readVmDevice(node, _vmTemplate, Guid.newGuid(),
addAsManaged);
--
To view, visit http://gerrit.ovirt.org/18188
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I95c1c2f1e2f45a1863c28c5fcaeb6274f2d28b4e
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches