core: autoconnect fixes for default-unmanaged devices and property notification
authorDan Williams <dcbw@redhat.com>
Thu, 23 Oct 2014 19:57:22 +0000 (14:57 -0500)
committerDan Williams <dcbw@redhat.com>
Mon, 27 Oct 2014 18:46:06 +0000 (13:46 -0500)
commitd147c26517141524578850f0187a17bb064ef585
treea5ddc0212c552927dd2193d1c647ad8c670f7e2b
parent2bf7d6b5db5093a78a3dbced9ad39a54a3fe907d
core: autoconnect fixes for default-unmanaged devices and property notification

Previously the only thing preventing default-unmanaged devices from
being auto-activated was luck and the fact that they didn't have any
available connections when in the UNMANAGED state.  That's no longer
true, so we must be more explicit about their behavior.

Furthermore it makes no sense to allow default-unmanaged devices
to set priv->autoconnect=TRUE since that is never supposed to
happen, so enforce that both in NM itself and if the change
request comes in over the D-Bus interface.

Lastly, internal priv->autoconnect=TRUE changes never emitted a
property change notification, meaning the NMPolicy would never
schedule an autoconnect check if the device's priv->autoconnect
was set to TRUE as a result of re-activating or waking from sleep.
introspection/nm-device.xml
src/devices/nm-device.c
src/nm-policy.c