On 07/09/09 15:48, Paul Brook wrote:
On Thursday 09 July 2009, Gerd Hoffmann wrote:
I don't think this will work out in the general case. Some devices
have
properties which can be used for that, i.e. network cards have a mac
address (no attribute yet but I expect it will come some day). Not
every device class has specific properties you can use to identify them
though. How would you identify a sound card for example?
Ok, put it annother way: Why do you need to identify them? Why would
libvirt
care whether a device is (say) a sound card or a VGA adapter?
Because libvirt-based applications want present that to the user?
The usual GUI workflow for adding devices is a two-step process:
First pick the device class, then pick the actual device from a
(short) list.