Hi Matt, Hi Ole,

I think adding a cli & api call for renaming interfaces would be quite
useful.
I agree we shouldn't refer to interfaces by name in the API thought
(sw_if_index is definitely the way to go)

Several non-api use-cases would imho benefit from this. I can see writing
cli scripts without having to sed $interface_name all over the place.
Also towards user friendliness, when exposing vppctl in a production
environment, `show interface`
can be a bit hard to understand and could benefit from context-related
names.

Anyway, would definitely use such a feature :)

Cheers
-Nathan

Le mer. 5 mai 2021 à 10:18, Ole Troan <otr...@employees.org> a écrit :

> 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
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19333): https://lists.fd.io/g/vpp-dev/message/19333
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to