Matt, > Source file src/vnet/interface.c has a function vnet_rename_interface(). It > only appears to be called by the lisp plugin currently. It would be handy to > be able to rename a DPDK interface without having to change startup.conf and > restart VPP. I am wondering if I could do that by adding a > sw_interface_rename API and calling vnet_rename_interface() in the handler > function. Before I spend much time working on that, I want to find out if > there are any known issues which would prevent that from working or if anyone > has any objections to doing it.
As a general principle, VPP doesn't have interface names. It has interface indices and you can in your application choose the index to name mapping yourself. Best regards, Ole
signature.asc
Description: Message signed with OpenPGP
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19330): https://lists.fd.io/g/vpp-dev/message/19330 Mute This Topic: https://lists.fd.io/mt/82588728/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-