NetworkManager#

Set WIFI priority:

nmcli connection show
nmcli connection modify SOME_CONNECTION connection.autoconnect-priority 10

https://askubuntu.com/a/722010/36078

Ignore virtual devices:

cat <<EOF > /etc/NetworkManager/conf.d/20-ignore-virtual-interfaces.conf
# https://gist.github.com/lanrat/458066dbdeb460b9cef40dc2af639a24

[keyfile]
# iface type | prefix
# ---------- | ------
# bridges    | br-
# docker     | veth
# libvirt    | virbr
unmanaged-devices=interface-name:br-*;interface-name:veth*;interface-name:virbr*
EOF