Thanks! I've added the "!is_external" check to my latest development patch revision at: https://github.com/slyon/NetworkManager/commits/netplan-nm-1.40
So this bug report is now mostly about comment #10, where the openvpn client/plugin is creating a temporary tunX device, which is displayed as "external" in "nmcli d", but still a Netplan YAML file is created in /etc/netplan on "nmcli con down <VPN>". I can easily reproduce this issue locally, using Canonical VPN and see tunX connection definitions piling up in /etc/netplan/ when bringing it up&down a few times in a row. This doesn't seem to affect the functionality, though. The VPN is connection is working when up in each iteration. ** Description changed: + *** Note: This bug is mostly about comment #10, now *** + When creating an OpenVPN connection, a temporal connection called tunN is created. For instance, after activating a connection called vpntest, I have: - NAME UUID TYPE DEVICE - vpntest 458856e6-8f0f-4dc6-82f2-dd72868252a0 vpn ens3 - tun0 1eb1dbe8-5678-4818-9adf-fb2dc01ed132 tun tun0 + NAME UUID TYPE DEVICE + vpntest 458856e6-8f0f-4dc6-82f2-dd72868252a0 vpn ens3 + tun0 1eb1dbe8-5678-4818-9adf-fb2dc01ed132 tun tun0 tun0 is created/removed after activating/deactivating vpntest and should not really be saved, but I see netplan adding it in /etc/netplan. And while doing so the plugin also reports some errors (I see these when stopping the connection): Nov 28 16:16:57 ubuntu NetworkManager[11752]: <error> [1669652217.2920] BUG: the profile cannot be stored in keyfile format without becoming unusable: cannot access file: No such file or directory Nov 28 16:16:57 ubuntu NetworkManager[11752]: ((src/libnm-core-impl/nm-connection.c:342)): assertion '<dropped>' failed Nov 28 16:16:57 ubuntu NetworkManager[11752]: <warn> [1669652217.2920] keyfile: commit: failure to write 1eb1dbe8-5678-4818-9adf-fb2dc01ed132 ((null)) to "/run/NetworkManager/system-connections/tun0-1eb1dbe8-5678-4818-9adf-fb2dc01ed132.nmconnection": keyfile writer produces an invalid connection: cannot access file: No such file or directory ** Changed in: network-manager (Ubuntu) Status: Confirmed => Triaged ** Changed in: network-manager (Ubuntu) Importance: Undecided => Medium ** Changed in: netplan Importance: High => Medium -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to network-manager in Ubuntu. https://bugs.launchpad.net/bugs/1998207 Title: netplan network-manager plugin tries to save temporary connections Status in netplan: Triaged Status in network-manager package in Ubuntu: Triaged Bug description: *** Note: This bug is mostly about comment #10, now *** When creating an OpenVPN connection, a temporal connection called tunN is created. For instance, after activating a connection called vpntest, I have: NAME UUID TYPE DEVICE vpntest 458856e6-8f0f-4dc6-82f2-dd72868252a0 vpn ens3 tun0 1eb1dbe8-5678-4818-9adf-fb2dc01ed132 tun tun0 tun0 is created/removed after activating/deactivating vpntest and should not really be saved, but I see netplan adding it in /etc/netplan. And while doing so the plugin also reports some errors (I see these when stopping the connection): Nov 28 16:16:57 ubuntu NetworkManager[11752]: <error> [1669652217.2920] BUG: the profile cannot be stored in keyfile format without becoming unusable: cannot access file: No such file or directory Nov 28 16:16:57 ubuntu NetworkManager[11752]: ((src/libnm-core-impl/nm-connection.c:342)): assertion '<dropped>' failed Nov 28 16:16:57 ubuntu NetworkManager[11752]: <warn> [1669652217.2920] keyfile: commit: failure to write 1eb1dbe8-5678-4818-9adf-fb2dc01ed132 ((null)) to "/run/NetworkManager/system-connections/tun0-1eb1dbe8-5678-4818-9adf-fb2dc01ed132.nmconnection": keyfile writer produces an invalid connection: cannot access file: No such file or directory To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1998207/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp