Hi Vratko Polak, currently sw_interface_dump will dump all interfaces if sw_if_index == 0. In my case, i need get interface information by id without by dumping all, but there is no way for this. I notice there is a TODO comment for sw_interface_dump in *interface.api* file.
> > /** \brief Request all or filtered subset of sw_interface_details > @param client_index - opaque cookie to identify the sender > @param context - sender context, to match reply w/ request > @param sw_if_index - index of the interface to dump info on, 0 or ~0 if on > all > *TODO* : *Support selecting only index==0 when CSIT is ready.* > @param name_filter_valid - 1 if requesting a filtered subset of records > else 0 > if name filter is set as valid, sw_if_index value is ignored and all > interfaces are examined > @param name_filter - interface name substring filter. Eg. loop1 returns > [loop1, loop10] > */ > define sw_interface_dump > Is there any plan for support selecting only index==0 ?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19304): https://lists.fd.io/g/vpp-dev/message/19304 Mute This Topic: https://lists.fd.io/mt/82453036/21656 Mute #vapi:https://lists.fd.io/g/vpp-dev/mutehashtag/vapi Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-