Hello i have a config file being read during init , one of its fileds is if-name. I need to have sw-if-index given the if-name. John already answered how to do that - but i fill lost with the cli buffers .... i only need a function get-if-index-by-if-name that receives if-name and returns if-index (the if-index that is shown in the :"show interface" in the Idx column)
Hohn answer: "The functions in the area you are interested may be the unformat functions unformat_vnet_sw_interface(), unformat_vnet_hw_interface() in src/vnet/interface_format.c used by VPP CLI to get sw_if_index or hw_if_index from user specified interface name. -John" Thank you -Sara -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8549): https://lists.fd.io/g/vpp-dev/message/8549 View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/14787612 Mute This Topic: https://lists.fd.io/mt/14787612/21656 New Topic: https://lists.fd.io/g/vpp-dev/post Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656 Group Home: https://lists.fd.io/g/vpp-dev Contact Group Owner: vpp-dev+ow...@lists.fd.io Terms of Service: https://lists.fd.io/static/tos Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub -=-=-=-=-=-=-=-=-=-=-=-