[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Get the vif label from XendAPI


  • To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Derenale Corrado <c.derenale@xxxxxxxx>
  • Date: Tue, 9 Feb 2010 11:52:26 +0100
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Tue, 09 Feb 2010 02:54:35 -0800
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: AcqpdfeklXyMn7LkTK2nyurFqh5Vew==
  • Thread-topic: Get the vif label from XendAPI

Dear all,

 

is there a way to get the label of a vif interface as seen by dom0 using the XendAPI?

 

tap-vif792 (see my ifconfig excerpt below) is the qemu interface.

 

I need to get the string  ‘tap-vif792’ or ‘vif792’  from the XendAPI, but I was not able to find the relationship between the VIF class and the labels of the interfaces as seen by the dom0.

 

Any hints?

 

Thanks and Regards,

 

Corrado.

 

The ifconfig from dom0 shows the following output:

 

eth0      Link encap:Ethernet  HWaddr 00:1A:A0:B7:8C:EF

          inet addr:10.39.19.30  Bcast:10.39.255.255  Mask:255.255.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:67067832 errors:0 dropped:0 overruns:0 frame:0

          TX packets:59586384 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:36354864314 (34670.7 Mb)  TX bytes:34967900533 (33347.9 Mb)

          Interrupt:16

 

tap-vif792 Link encap:Ethernet  HWaddr 1E:4D:47:D0:10:A7

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:916488 errors:0 dropped:0 overruns:0 frame:0

          TX packets:592213 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:500

          RX bytes:1019136355 (971.9 Mb)  TX bytes:278122840 (265.2 Mb)

 

vif792    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF

          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:40187 overruns:0 carrier:0

          collisions:0 txqueuelen:32

          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)



--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.