Dan Kenigsberg has posted comments on this change.

Change subject: devices: move and rename getUnderlyingDeviceAddress
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.ovirt.org/#/c/38714/2/vdsm/virt/vmxml.py
File vdsm/virt/vmxml.py:

Line 511:     """
Line 512:     Obtain device's address from libvirt
Line 513:     """
Line 514:     address_xml = device_xml.getElementsByTagName('address')[index]
Line 515:     # Parse address to create proper dictionary.
this comment, with minor modifications, fits well into a docstring.

Thanks for this moving. Would you please also add a little unit test for this 
function.
Line 516:     # Libvirt device's address definition is:
Line 517:     # PCI = {'type':'pci', 'domain':'0x0000', 'bus':'0x00',
Line 518:     #        'slot':'0x0c', 'function':'0x0'}
Line 519:     # IDE = {'type':'drive', 'controller':'0', 'bus':'0', 'unit':'0'}


-- 
To view, visit https://gerrit.ovirt.org/38714
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I45fefb65461bcf97f75d607c55097eb5db2ed2ba
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to