Change in vdsm[master]: Fix crash on vm start with netdevs w/out some info
asegurap at redhat.com
asegurap at redhat.com
Wed Apr 3 22:21:04 UTC 2013
Antoni Segura Puimedon has posted comments on this change.
Change subject: Fix crash on vm start with netdevs w/out some info
......................................................................
Patch Set 3: (1 inline comment)
And thanks everyone for the reviews.
....................................................
File vdsm/libvirtvm.py
Line 2968: devType = x.getAttribute('type')
Line 2969: mac = x.getElementsByTagName('mac')[0].getAttribute('address')
Line 2970: alias = x.getElementsByTagName('alias')[0].getAttribute('name')
Line 2971: if devType == 'hostdev':
Line 2972: name = alias
I thought that for statistical purposes it might be better to have a nic.name be like the alias for the passed through
devices, but I'm open to change it if somebody has strong objections.
Line 2973: model = 'passthrough'
Line 2974: else:
Line 2975: name = x.getElementsByTagName('target')[0].getAttribute('dev')
Line 2976: model = x.getElementsByTagName('model')[0].getAttribute('type')
--
To view, visit http://gerrit.ovirt.org/13540
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I5a90fba21075ab2c7ecb0cb75f14ca07f090829e
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap at redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <asegurap at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Dan Yasny <dyasny at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the vdsm-patches
mailing list