Dear Lenny,

bridge_domain_sw_if_details is a reply that comes from VPP in response
to bridge_domain_dump - you can see it starting from the line 390 of
the file src/vnet/l2/l2_api.c in
vl_api_bridge_domain_dump_t_handler().

Attempting to send bridge_domain_sw_if_details as a request lands on
the corresponding handler on line 339 which does not do anything other
than printing "BUG" on the console (and because this is supposed to be
the message VPP->user, this is the expected behavior).

Using bridge_domain_dump with bridge ID of 0xFFFFFFFF (see code on
lines 406-407), you can request to send back a set of
bridge_domain_sw_if_details for all of the bridge IDs, and one of
these messages will have the data about the interface you are
interested in.

HTH!

--a



On 2/1/17, Lenny Lyytinen <len...@checkpoint.com> wrote:
> Hi,
>
> I'm trying to use vpp_papi to get the bridge ID of an interface, but I'm
> having no luck.
> bridge_domain_sw_if_details() seems like the relevant function, however when
> I attempt to run it, I get:
>
> Traceback (most recent call last):
>   File "./bridge_details.py", line 8, in <module>
>     t = vpp.bridge_domain_sw_if_details(sw_if_index=2, shg=0)
>   File "build/bdist.linux-x86_64/egg/vpp_papi/vpp_papi.py", line 304, in
> <lambda>
>   File "build/bdist.linux-x86_64/egg/vpp_papi/vpp_papi.py", line 546, in
> _call_vpp
>   File "build/bdist.linux-x86_64/egg/vpp_papi/vpp_papi.py", line 394, in
> results_wait
> IOError: [Errno 3] Waiting for reply timed out
>
> bridge_domain_dump() works fine and I can see which interfaces use a given
> bridge, however that's a backwards solution as I need to provide the bridge
> ID in that case.
>
> Any idea why my request times out with bridge_domain_sw_if_details?
>
> For reference, in vppctl:
>
> vpp# show bridge
>   ID   Index   Learning   U-Forwrd   UU-Flood   Flooding   ARP-Term
> BVI-Intf
>   11     4        on         on         on         on         off
> N/A
>
> Thanks,
> Lenny
>
>
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to