Gustavo Frederico Temple Pedrosa has posted comments on this change.
Change subject: engine: VM Device Type for Display Type
......................................................................
Patch Set 8:
(2 comments)
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfReader.java
Line 297: protected abstract void readOsSection(XmlNode section);
Line 298:
Line 299: protected abstract void readHardwareSection(XmlNode section);
Line 300:
Line 301: protected abstract VmDeviceType getDisplayDevice(DisplayType
displayType);
Done
Line 302:
Line 303: protected void readGeneralData() {
Line 304: XmlNode content = _document.SelectSingleNode("//*/Content");
Line 305: XmlNode node;
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmInfoBuilder.java
Line 79: * Add video device according to the given display type
Line 80: */
Line 81: private void addVideoCardByDisplayType(DisplayType displayType,
int numOfMonitors) {
Line 82: Map<String, Object> struct = new HashMap<String, Object>();
Line 83: VmDeviceType vmDeviceType =
getOsRepository().getDisplayDevice(vm.getOs(),
vm.getVdsGroupCompatibilityVersion(), vm.getDefaultDisplayType());
Done
Line 84: // create a monitor as an unmanaged device
Line 85: struct.put(VdsProperties.Type,
VmDeviceGeneralType.VIDEO.getValue());
Line 86: struct.put(VdsProperties.Device, vmDeviceType);
Line 87: struct.put(VdsProperties.SpecParams,
getNewMonitorSpecParams(displayType, numOfMonitors));
--
To view, visit http://gerrit.ovirt.org/18677
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I326f8aaf0de95332436499205f90336d2f4e73d7
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gustavo Frederico Temple Pedrosa <[email protected]>
Gerrit-Reviewer: Frank Kobzik <[email protected]>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa
<[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Leonardo Bianconi <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Shahar Havivi <[email protected]>
Gerrit-Reviewer: Vitor de Lima <[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