ifnet: track connections by UUID not conf.d net connection name
We'll need this for later with unsaved connections. The ifnet plugin previously tracked connections by the "conn_name" which was derived from keys in the /etc/conf.d/net file. These keys take two forms: 1) interface name config_eth0=( "192.168.4.121/24" "dhcp6" ) 2) wifi SSID, either text or hex-encoded: config_myssid=("dhcp") config_0xab3ace=("dhcp") The conf.d net connection name is apparently usually an interface name, so when writing to /etc/conf.d/net the NM connection name is changed from eg "Ethernet connection 1" to the next available interface name based on the type of connection, eg "eth0". The ifnet plugin actively removed connections that were not present in /etc/conf.d/net during the reload_connections() call, but in the future we'll want to allow unsaved connections which in the case of ifnet clearly won't yet be written to the file. Since only connections written to the file have a "conn_name", tracking connections by conn_name no longer works.
Showing