netplan:live-rename

Last commit made on 2018-05-23
Get this branch:
git clone -b live-rename https://git.launchpad.net/netplan

Branch merges

Branch information

Name:
live-rename
Repository:
lp:netplan

Recent commits

80c56e9... by Mathieu Trudel-Lapierre

WIP: detect naming changes and apply them

If the iface is up, just do net_setup_link; otherwise run 'ip link set'.

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>

f2c15ce... by Mathieu Trudel-Lapierre

networkd: write .rules files to run as late as possible, so 99-netplan-.

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>

2e35e28... by Mathieu Trudel-Lapierre

Clean up after new .rules files

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>

fd6824c... by Mathieu Trudel-Lapierre

Merge pull request #31 from daxtens/rules

Generate udev rules files to rename devices

b0c51bf... by Daniel Axtens

Generate udev rules files to rename devices

Due to a systemd issue[1], using link files to rename interfaces
doesn't work as expected. Link files will not rename an interface
if it was already renamed, and interfaces are renamed in initrd, so
set-name will often not work as expected when rebooting.

However, rules files will cause a renaming, even if the interface
has been renamed in initrd.

So, while we sort out whether the systemd-udev behaviour is broken
or not, we can simply generate udev rules files with appropriate
renaming info in /run/udev/rules.d/70-netplan-<interface>.rules

A file will be created for non-virtual interfaces with both a
set-name and a driver or a mac address in the match stanza.
(Renaming from name to name doesn't work.)

This is at least a temporary fix to LP: #1770082

As far as testing goes, test successful set-name: generations, and
a few cases where we expect no files to be generated.

[1] https://github.com/systemd/systemd/issues/9006

Signed-off-by: Daniel Axtens <email address hidden>

d158eb9... by Daniel Axtens

tests/generate: rename assert_udev to assert_nm_udev

The function specifically tests a NM specific udev rule. We're
about to add more udev support, so it would be helpful to have
clearer names.

Signed-off-by: Daniel Axtens <email address hidden>

7afef6a... by Mathieu Trudel-Lapierre

releasing package netplan.io version 0.37.1

60b8def... by Mathieu Trudel-Lapierre

Update changelog

b96b14f... by Mathieu Trudel-Lapierre

tests: various small fixes

Be explicit about enabling accept-ra; especially for systemd which might not
necessarily wait until the v6 IP is set (an RA received) unless we explicitly
tell it to accept RAs.

Also set mii-monitor-interval for test_bond_resend_igmp to attempt to force
it to be less flaky.

Signed-off-by: Mathieu Trudel-Lapierre <email address hidden>

168c83e... by Mathieu Trudel-Lapierre

releasing package netplan.io version 0.37