[Kimchi-devel] [RFC]: help, how to get the mac after create a VM interface.
Crístian Viana
vianac at linux.vnet.ibm.com
Wed Jan 22 17:51:52 UTC 2014
Am 22-01-2014 15:45, schrieb Christy Perez:
> libvirt always adds the new interface to the end of the group. I did a
> little experimenting to make sure. So, you could just parse the
> interfaces and pull the MAC from the last one returned. It's not very
> elegant, though.
... and not very reliable. There may be other operations happening at
the same time (like someone else creating another NIC), and the last
interface returned may have been created by other user. It's a web app,
we should expect simultaneous access.
But I don't have another solution for this...
More information about the Kimchi-devel
mailing list