Allow matching network interfaces with certain Mac address patterns via globbing
Hello, recently I decided to solve the "network interfaces created by Docker/LXD/... appeared managed by NetworkManager" issue (yes I know it is treated differently with the (external) marking, I just don't want to see it listed in nmcli connection show
/nmtui
/... etc anyways), by setting the keyfile.unmanaged-devices
option.
However, I found that I can't specify Docker bridge interfaces only as they use the br-*
generic interface name which I assume should be used by other bridge applications. I googled it and found that all Docker bridges by default, using the "02:42:*
" MAC address prefix which can be easily matched via globbing, however, I RTFM'd and found out globbing isn't supported for the MAC address matching specification specifically in the Device List Format section of NetworkManager.conf(5).
Although after another round of research I found out that glob matching of MAC addresses and make a network interface unmanaged is possible via udev rules I still found that supporting this mechanism directly in NetworkManager is handy even as an alternative solution, and would like to see it implemented nevertheless.
Thanks in advance.