[pve-devel] [PATCH pve-common 0/1] RFC: detect physical nic name from sysfs

Alexandre Derumier aderumier at odiso.com
Mon Jan 20 10:38:20 CET 2020


Hi,

currently we only allow interfaces name with (ethX, or enXXXX).

Some users currently rename interfaces to custom names 
sometime because the predictable name scheme is buggy with too long name (>16 characters names),
and users have interfaces like "renameX".
sometime because it's easier to remember the usage of the interface (lan0, wan0, ceph0, san0,...)

This patch read physical interfaces from pci sysfs.
Currently it's only for Inotify, but this should also be implemented later in tap_plug and other functions
with regex on ethX, enXXXX.


also,
I would like to implement after that, nic renaming management from api && gui.
I'm seeing a lot of users still doing it with /etc/udev/rules.d/70-persistent-net.rules,
and it's not supported anymore by debian.(systemd link should be used)
https://wiki.debian.org/NetworkInterfaceNames#CUSTOM_SCHEMES_USING_.LINK_FILES


Alexandre Derumier (1):
  INotify : network_interfaces: detect physical nic name from sysfs

 src/PVE/INotify.pm     | 22 ++++++++++++++--------
 src/PVE/ProcFSTools.pm | 12 ++++++++++++
 2 files changed, 26 insertions(+), 8 deletions(-)

-- 
2.20.1



More information about the pve-devel mailing list