[CentOS-virt] Discover what vnet is attached to a kvm guest

Fri May 13 11:13:16 UTC 2011
carlopmart <carlopmart at gmail.com>

Hi all,

  How can I see what vnet is attached to a certain kvm guest?? For 
example: I have a kvmguest1. When I launch this guest with virsh 
command, virsh creates a new vnetX interface for this guest. How can I 
extract this virtual net interface (vnet0, vnet1, vnet2 or so on) using 
a script??

CL Martinez
carlopmart {at} gmail {d0t} com