Comment 2 for bug 1942266

Revision history for this message
Paweł Stołowski (stolowski) wrote :

We have two related issues:
- with auto-connect task we do not reconsider/recreate existing (already connected) autoconnections: see addNewConnection(..) in ifacestate helpers.go (this helper is used only for auto-connect and for gadget connections); they are explicitly filtered out and there is a comment about that in the code.
- for manually connected interfaces we do not "reconnect" them if their attributes changed - this was partially fixes for content interface long time ago (see https://bugs.launchpad.net/snapd/+bug/1825883, https://github.com/snapcore/snapd/pull/6802) but there is an XXX comment in reloadConnections about needing a complete fix.

Properly fixing this will require re-running interface hooks for changed interfaces (and maybe disconnect hooks first).