]> git.ipfire.org Git - thirdparty/systemd.git/commit
[RFC] better naming for Azure MANA network devices (#34255)
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 08:52:40 +0000 (09:52 +0100)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2024 08:52:40 +0000 (09:52 +0100)
commitcdcb1eeeb883b2ecb3992865f458f874900ddb87
tree989bf9fb47abf59bfaa7761d7c9400eb00d8d213
parent77d4a263c14ffbb6133382bc18319b6a54a8eaae
parent9311c28b3407fbad69d0b747129b03ce1c7a6309
[RFC] better naming for Azure MANA network devices (#34255)

The Azure MANA folks would like the PCI domain to be suppressed from
naming network interfaces. Let's introduce a somewhat generic way to do
this, without hardcoding anything to Azure.

Specifically: we'll ship a new hwdb entry that sets a new
ID_NET_NAME_INCLUDE_DOMAIN=0 property on relevant MANA devices. Then we
make net_id look for that property, and if it is set we simply suppress
the PCI domain.

(Untested as of now, needs feedback from Azure MANA folks that this
actually works and does what is requested here).
src/udev/udev-builtin-net_id.c