[Libvirt-cim] [PATCH V2] Add default network card name existence check

Daniel Veillard veillard at redhat.com
Thu Jul 25 06:47:46 UTC 2013


On Fri, Jul 12, 2013 at 09:19:57AM +0800, Xu Wang wrote:
> Default network card name was set as 'eth1' or 'em1'. But when os has no network card named like that, FAIL
> would occured. This patch added check if default name exists in the network card list and if not, change
> the default value into the 1st one in the list.
> 
> Signed-off-by: Xu Wang <cngesaint at gmail.com>
> ---
>  .../27_definesystem_macvtap_dev.py                 |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)

  Looks reasonnable, pushed, thanks !

Daniel

-- 
Daniel Veillard      | Open Source and Standards, Red Hat
veillard at redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the Libvirt-cim mailing list