~slyon/network-manager:netplan-migrate-maintscript

Last commit made on 2023-04-05
Get this branch:
git clone -b netplan-migrate-maintscript https://git.launchpad.net/~slyon/network-manager
Only Lukas Märdian can upload to this branch. If you are Lukas Märdian please log in for upload directions.

Branch merges

Branch information

Name:
netplan-migrate-maintscript
Repository:
lp:~slyon/network-manager

Recent commits

f937261... by Lukas Märdian

d/network-manager.postinst: Trigger Netplan migration on install/upgrade

(LP: #2010561)

d777633... by Lukas Märdian

Netplan: don't crash when migrating connections from /etc to /run

Also, when changing SSID we cannot rely on 'existing_path', as the SSID is
encoded in the filepath generated by Netplan.

a5ba2f6... by Lukas Märdian

d/t/nm_netplan.py: cleanup /tmp/openvpn after use

fd0d73e... by Lukas Märdian

d/t/nm_netplan.py: Make sure NM connections are written to disk

This is to trigger the Netplan integration. It will only handle NM
connection profiles written to /etc/NetworkManager/system-connections
and ignore NM connection profiles, which are in memory or temporaray
(e.g. /run/NetworkManager/...).

f9fbe1c... by Lukas Märdian

Netplan: fix duplicate temp connections (LP: #1998207)

c807e23... by Lukas Märdian

d/rules: Fix git-build-recipe conflict (quilt vs native build)

This is to fix the build of the network-manager-netplan-lunar-gu LP
build-recipe for the "Netplan Everywhere" PPA:

https://code.launchpad.net/~canonical-foundations/+recipe/network-manager-netplan-lunar-gu
https://code.launchpad.net/~canonical-foundations/+archive/ubuntu/networkmanager-netplan

3d917b3... by Danilo Egea Gondolfo

d/t/nm_netplan.py: Add a test for OpenVPN connections (LP: 1998207)

This test reproduces the bug reported on LP#1998207

On NM 1.40, when we added a route to the tun0 interface it would just
work. On NM 1.42, the interface in taken down when we change it so the
client will not work.
Now that NM 1.42 will also create a connection for the loopback
interface, let's add the route to 'lo' instead.

b3485a5... by Danilo Egea Gondolfo

d/t/nm_netplan.py: Add autopkgtests for the netplan integration

nm_netplan.py creates connections through the Python library. It adds
a lot of boilerplate when implementing tests though. Might be better to
just call nmcli.

- Add test to create, change and delete a tap device
- Add few more tests
  Also add some support code to handle NetworkManager between tests.
- Delete interfaces if they still exist
  It seems that sometimes after deleting a connection, an interface might
  linger around for some reason.
- Add few more tests
- d/t/nm_netplan.py: improve formating
  Remove spaces, empty lines, rename the test file to have a lower
  priority when parsed and remove all the skip annotations.

c70df2e... by Danilo Egea Gondolfo

d/t/nm.py: Fix autopkgtests when Netplan is in use

Some autopkgtests will fail with the libnetplan patch because a
temporary directory is mounted and unmounted for each test to store the
NM configuration. As all the related netplan yaml files will be kept in
/etc/netplan, all the deleted connections were being recreated.

Let the nm.py script also mount /etc/netplan as a tmpfs volume for each
test.

931d95b... by Lukas Märdian

d/network-manager.preinst: backup previous configuration automatically