/lib/udev/rules.d/85-nm-unmanaged.rules contains the lines
# Virtual Ethernet device pair. Often used to communicate with a peer interface
# in another net namespace and managed by libvirt, Docker or the like.
But on my system running eudev, the ID_NET_DRIVER variable is not set. Here's the udevadm output for a veth device:
# udevadm info /sys/devices/virtual/net/veth9f54ce0a
Steps to Reproduce:
1. Install networkmanager.
2. Install docker or lxd and create a container.
3. Check to see if the virtual ethernet interfaces are managed.
In practice, the interfaces are not recognized by eudev using the default rules and NM_UNMANAGED is not set.
The interfaces should be recognized as virtual ethernet interfaces and NM_UNMANAGED set accordingly.
Created attachment 736987 [details]
If I use the workaround described in https://bugs.gentoo.org/714168#c2, NM_UNMANAGED is properly set for the affected interfaces.
This should be fixed in the ebuild.
In the v1.38.0 NEWS file I see
> * Veth devices with name "eth*" are now managed by default via the
> udev rule. This is to support managing the network in LXD containers.
Does this resolve the issue?