multipass-test:driver-specific-matching

Last commit made on 2020-09-17
Get this branch:
git clone -b driver-specific-matching https://git.launchpad.net/multipass-test

Branch merges

Branch information

Name:
driver-specific-matching
Repository:
lp:multipass-test

Recent commits

a327c8d... by Luis Peñaranda

Refactor VM creation.

The cloud-init file used to be written before the VM was created. This
had the disadvantage that we had to know how to match the network
interfaces beforehand. Now, the cloud-init file is created after the
VM was created. The backend is thus who tells us how to match each
interface, at VM creation time.

c08b179... by Luis Peñaranda

Test Linux platform::get_network_interface_info().

The test is incomplete, since we still have to mock the filesystem to
mimic reading from /sys.

ac072af... by Luis Peñaranda

Improve test coverage for output formatters

3356978... by Luis Peñaranda

Add test for mp::utils::valid_mac_address().

4458106... by Luis Peñaranda

Add test for list-networks.

7c8d0f3... by Luis Peñaranda

Improve comments on backends list-networks.

9db93c2... by Luis Peñaranda

Ask the factory how to match network interfaces.

All network interfaces marked as "auto" must be matched by cloud-init.
Most backends support setting the MAC address of the network interfaces,
what permits us to match them easily. However, if setting the MAC is not
possible, we need to match them by name. And the name depends on the
backend, so we need to ask the factory how to match.

bd6a3c1... by Luis Peñaranda

Make "auto" the default mode in launch --network

67631e7... by Luis Peñaranda

Adapt tests to the new functions in the factory.

1e2128e... by Luis Peñaranda

Added cloud-init configuration for net interfaces.