cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiradeep Vittal <>
Subject Re: Create VM - find out the NIC on KVM host connected to a Network switch
Date Mon, 23 Dec 2013 22:56:44 GMT
Why do you need this information on the MS? Can you detail the steps of the algorithm you are
trying to design?
Step 1:
Step 2:
Step 3: Aha. Here's where I need this info

From: Pradeep Cloudstack <<>>
Reply-To: Pradeep Cloudstack <<>>
Date: Sunday, December 22, 2013 10:43 PM
To: Chiradeep Vittal <<>>,
"<>" <<>>
Subject: Re: Create VM - find out the NIC on KVM host connected to a Network switch

That is fine. But how do we convey this information to the Mgmt Server ?
Without making any enhancements to MgmtSvr/Agent , is it possible to achieve this?


On Saturday, December 21, 2013 4:19 AM, Chiradeep Vittal <<>>
On the KVM host you could parse the output of 'brctl show', but that is
awkward to parse.
Or you might be able to iterate through /sys/devices/virtual/net/* and
work backwards from that.

On 12/19/13 10:16 PM, "Pradeep Cloudstack" <<>>

>Hi Chiradeep,
>the LLDP output on the switch looks something like
>Local Interface    Parent Interface    Chassis Id          Port info
>    System Name
>ge-0/0/21.0        -                  00:30:48:c9:54:26  eth1
>ge-0/0/20.0        -                  00:30:48:fd:e4:fc  eth1
>me0.0              -                  78:fe:3d:d7:f4:80  ge-0/0/2.0
>    x2-sw39
>Here  and
>  are the KVM hosts connected to
>the switch
>On Friday, December 20, 2013 5:54 AM, Chiradeep Vittal
><<>> wrote:
>What does the LLDP output look like?
>On 12/18/13 11:03 PM, "Pradeep Cloudstack" <<>>
>>Hi ,
>>on a KVM host, I have a bridge interface - cloudbr1 to which eth1 has
>>been added.
>>This is for guest Network.
>>When we create a VM on the KVM host, the NetworkGuru plugin gets to know
>>about cloudbr1
>>(via the KVM traffic label). But is there any means to figure out the
>>ports (like eth1) that have been
>>attached to the bridge interface(in this case cloudbr1) on the KVM?
>>The reason I want to know this is that the lldp output on the switch
>>gives information about eth1 (and not the bridge interfaces).

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message