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.
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.