netplan:hashed-passwords

Last commit made on 2019-07-26
Get this branch:
git clone -b hashed-passwords https://git.launchpad.net/netplan

Branch merges

Branch information

Name:
hashed-passwords
Repository:
lp:netplan

Recent commits

7f71a36... by Mathieu Trudel-Lapierre

Merge branch 'master' into hashed-passwords

495263a... by Michael Vogt

tests: rework dbus test to work with older python versions

This commit removes the newer subprocess keywords that are not
available in 16.04/18.04. Tests work in 16.04 now too.

2d60fae... by Michael Vogt

add dbus based "netplan apply" interface

This PR adds a new io.netplan.Netplan dbus activatable service
that can be used to Apply a netplan configuration.

The main use-case for this is Ubuntu Core where we want to allow
snaps to control the netplan network configuration via an interface.

However we do not want to give access to systemctl to restart
systemd-networkd or network-manager. The dbus service will run
outside of the confinement will archive this goal.

The interface is probably useful beyond Ubuntu Core.

861446b... by Łukasz Zemczak

Stylistic change.

f2f4bb7... by Łukasz Zemczak

Add tests for the new hash: password support.

cbc8a76... by Łukasz Zemczak

Merge branch 'hashedPasswords1' of git://github.com/fluffy/netplan into hashed-passwords

7a1127f... by Deltik

Tolerate devices without a /sys path

When using the NetworkManager renderer, the logic in
`NetplanApply.command_apply()` tells `nmcli` to disconnect the devices
previously populated by `netifaces.interfaces()`.

In addition, if an alias like "eth0:0" exists, it will show as a device
from `netifaces.interfaces()` but will not have a path in
`/sys/class/net`.

This means that the `devices` variable may have more devices than
actually exist due to the past `nmcli device disconnect` run or the
presence of one or more aliases.

The attached patch fixes this bug by tolerating all errors from `udevadm
test-builtin net_setup_link /sys/class/net/XXX` so that `netplan apply`
doesn't quit and leave the user without a network setup.

Fixes LP #1810043
Launchpad: https://bugs.launchpad.net/netplan/+bug/1810043

Signed-off-by: Nick Liu <email address hidden>

ee94ec1... by Mathieu Trudel-Lapierre

Fix incorrect separator for networkd with ARP IP targets (LP: #1829264)

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

ea47bd4... by Mathieu Trudel-Lapierre

parser: refactor / factor out validation and error reporting

Move validation and error reporting to their own files; also rework
the validation passes slightly to validate as much as we can of the
netplan grammar in parser passes (so we get context info for errors),
and leave the backend rules sanity checking only to after the parsing.

This way we'll get the error context, unless things are backend-specific
rules for which it's just hard to get the info (and not as helpful).

a001750... by Mathieu Trudel-Lapierre

parser: reorganize validation to happen in a single pass at the end of parsing