TL;DR: Is there an API way to get hw_if_index value? CLI "show hardware-interfaces" works for humans, but some parsing is needed for machines to extract the index value.
For software interfaces, there is sw_interface_dump, but I do not see any API way to get hw_if_index. API users need that value for calls related to hardware capabilities: flow_enable, flow_disable, vxlan_offload_rx and gtpu_offload_rx (implementations call vnet_get_hw_interface). Some of them are used in CSIT, which happens to work [0] just because that suite does not create any non-hardware interfaces (before the target hardware interface is created). Vratko. [0] https://gerrit.fd.io/r/c/csit/+/36120/4/resources/libraries/python/InterfaceUtil.py#1127
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21416): https://lists.fd.io/g/vpp-dev/message/21416 Mute This Topic: https://lists.fd.io/mt/91183386/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-