215
215
self.vendor = nodedev.vendor_id
216
216
self.product = nodedev.product_id
220
222
def _get_source_xml(self):
222
226
if self.vendor and self.product:
223
227
xml += " <vendor id='%s'/>\n" % self.vendor
224
228
xml += " <product id='%s'/>\n" % self.product
226
232
xml += " <address bus='%s' device='%s'/>\n" % (self.bus,
229
237
raise RuntimeError(_("'vendor' and 'product', or 'bus' and "
230
238
" 'device' are required."))