Dan Kenigsberg has posted comments on this change.
Change subject: Support new type of vmParams parameter for VM create.
......................................................................
Patch Set 2: I would prefer that you didn't submit this
(9 inline comments)
minor style issues
....................................................
File vdsm/libvirtvm.py
Line 831: _VHOST_MAP = {'true': 'vhost', 'false':
'qemu'}
now _ prefix is redundant
Line 1089: devMap = {'drives': Drive, 'nic':
NetworkInterfaceDevice,
'drives' etc should better be CONSTANTS
Line 1092: for devType, devObj in devMap.items():
devObj -> devClass
....................................................
File vdsm/vm.py
Line 52: self.doc = xml.dom.minidom.Document()
please move to specific getXML functions
Line 349: removables = [{'type': 'disk', 'device':
'cdrom', 'path': self.conf.get('cdrom', ''),
long line
Line 362: if dev['type'] == 'disk':
nic->interface
drives->disk
and loose the elif.
Line 372: def buildConfDevices(self):
"""
Return the "devices" section of this Vm's conf. If missing, create it
according old API.
"""
Line 379: if confDevices == None:
no need for variable confDevices
Line 408: vcards.append({'type': 'video',
'specParams': vram, 'device': devType})
longline
--
To view, visit
http://gerrit.ovirt.org/788
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I26a9bf46a23f5c6d92ea3fea163ac23dcac21df8
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Igor Lvovsky <ilvovsky(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Igor Lvovsky <ilvovsky(a)redhat.com>