[openstack-dev] How to get openvswitch_id at Openstack

Aaron Rosen arosen at nicira.com
Sun Jun 9 03:58:47 UTC 2013


There's not an openstack way to get this information from the api. Why do
you care about the id  (or getting it from the api)?

ovs-vsctl list b ; will list the datapath info if run on a compute node
though.


On Sat, Jun 8, 2013 at 8:47 PM, Baohua Yang <yangbaohua at gmail.com> wrote:

> Thanks arosen!
> Howerver, what i mean is to get the id of the openvswitch (or
> datapath/bridge), not the attached interface.
> And, through openstack's way, not go to the compute node, and run some
> cmds...
>
>
> On Sun, Jun 9, 2013 at 11:37 AM, Aaron Rosen <arosen at nicira.com> wrote:
>
>> Whoops that was the dhcp port:
>>
>> arosen at arosen-desktop:/home/arosen# sudo ovs-vsctl get Interface
>> qvo86ec5db4-e7 external_ids
>> {attached-mac="fa:16:3e:97:83:dc",
>> iface-id="86ec5db4-e75d-4c1f-b790-fb972e16560e", iface-status=active, *
>> vm-uuid="8f80b8dc-8c78-459d-9f61-df6927cdd90b"*}
>>
>>
>>
>> On Sat, Jun 8, 2013 at 8:35 PM, Aaron Rosen <arosen at nicira.com> wrote:
>>
>>> arosen at arosen-desktop:/home/arosen# sudo ovs-vsctl get Interface
>>> tap317259f0-f3 external_ids
>>> {attached-mac="fa:16:3e:5e:60:51",
>>> iface-id="317259f0-f306-4740-b6fd-bd5eeb1a601b", iface-status=active}
>>>
>>>
>>>
>>> On Sat, Jun 8, 2013 at 8:19 PM, Baohua Yang <yangbaohua at gmail.com>wrote:
>>>
>>>> hi,all
>>>>     Anyone know how to get the ovs-id in OpenStack from the vm
>>>> information?
>>>>     for example, if we start a vm-A, at port-B, we can get the mac/ip
>>>> information, how to know which ovs it is attached?
>>>>
>>>>     Thanks so much!!
>>>>
>>>> --
>>>> Best wishes!
>>>> Baohua
>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> OpenStack-dev at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
> --
> Best wishes!
> Baohua
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130608/7513ee2f/attachment.html>


More information about the OpenStack-dev mailing list