netplan:slyon/nm-3

Last commit made on 2021-01-19
Get this branch:
git clone -b slyon/nm-3 https://git.launchpad.net/netplan

Branch merges

Branch information

Name:
slyon/nm-3
Repository:
lp:netplan

Recent commits

215dbfb... by Lukas Märdian

nm: uses alias for 'ethernet', 'wifi' and 'wifi-security'

NetworkManager writes the alias for 'ethernet' (802-3-ethernet), 'wifi' (802-11-wireless) and 'wifi-security' (802-11-wireless-security) settings by default since a long time, we should do so as well. Especially we should not mix and match.

see: https://bugzilla.gnome.org/show_bug.cgi?id=696940
see: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/c36200a225aefb2a3919618e75682646899b82c0
see: nm_keyfile_plugin_kf_set* from nm-keyfile-utils.c (libnm-core)

1a88c21... by Lukas Märdian

nm: refatoring to use GKeyFile writer, instead of home grown

66e7884... by Lukas Märdian

Implement netplan_generate and netplan_delete_connection APIs (#182)

This is 2nd in a series of pull request implementing the functionality in libnetplan to provide a NetworkManager YAML backend. It builds upon #181

* It improves the netplan set CLI a bit, to delete a file, if only network: {version: 2} is left.
* It implements a netplan_generate function, which will call netplan generate in the background by spawning another process.
  * At some point the generate binary should be refactored, to call functions of libnetplan instead, so we could use this same (refactored) functionality inside the library directly
  * But for now this is as good as it gets...
* It implements a netplan_delete_connection function, which will delete a connection from the YAML structure of a file (or potentially the whole file, if it is empty afterwards), by utilizing the netplan set network.TYPE.IFNAME=NULL functionality by spawning another process.
  * At some point we should get rid of this Python/C split of the YAML parsers, to have all the functionality available inside the C library.
  * But for now this is as good as it gets, without duplicating any logic...

b506c71... by Lukas Märdian

Prepare for NetworkManager YAML backend functionality (#181)

This is the first in a series of pull request to be prepared for setting up the functionality for a NetworkManager YAML/netplan backend, to be merged into slyon/networkmanager-yaml-backend before it will collectively be merged into master.

This PR refactors some of the YAML processing logic into libnetplan (from the generate binary), keeps track of the filename (absolute path) of the YAML file for each NetplanNetDefinition and implements a first additional library function netplan_get_id_from_nm_filename, which will output the NetplanNetDefinition ID given a path to a netplan generated .nmconnection keyfile in /run/NetworkManager/system-connections/.

The netplan ID is not stored inside NM's data structures, therefore we need a way to gain netplan's identifier for any given connection profile.

Commits:
* parse:generate: refactor process_yaml_hierarchy
* parse: track filename of netdefs
* parse: add netplan_get_id_from_filename library function
* parse: fix typo
* generate: some stylistic cleanup
* util: move netplan_get_id_from_nm_filename from parse.c

03746b4... by Lukas Märdian

tests:dbus: improve test stability of timeouts

465c530... by Lukas Märdian

tests:tunnels: improve test reliability

944b1e3... by Lukas Märdian

tests: adopt to wording changes as of OVS 2.15

They changed the term slave -> member.
https://github.com/openvswitch/ovs/commit/91fc374a9c5a2a4d9520aaa3588a7a18338a476e

86bd330... by Nobuto Murata

doc: Add a caveat to wake on LAN which is systemd.link related (LP: #1909114) (#180)

Fixes LP: #1909114

41bfbd6... by Lukas Märdian

parse: fix 'networkmanager:' backend options for modem connections (#179)

The COMMON_BACKEND_HANDLERS have been forgotten for modem connections apparently. Add them to allow the definition of the special networkmanager: mapping, used for NetworkManager integration. We do not (yet) use that information (like uuid) in the current implementation. But reading YAML via NetworkManager will be broken if the networkmanager: mapping is not accepted.

85ff2f5... by Lukas Märdian

Fix changing of macaddress with systemd v247 (#178)

* networkd: Fix changing of macaddress with systemd v247

* networkd: avoid writing MACAddress= [Link] into .link file (we already have it in .network file)

* network: some cleanup