~netplan-developers/netplan/+git/netplan:slyon/nm-2

Last commit made on 2021-01-15
Get this branch:
git clone -b slyon/nm-2 https://git.launchpad.net/~netplan-developers/netplan/+git/netplan

Branch merges

Branch information

Name:
slyon/nm-2
Repository:
lp:~netplan-developers/netplan/+git/netplan

Recent commits

a1fd44f... by Lukas Märdian

util: move netplan_delete_connection and netplan_generate from parse.c

b7afe16... by Lukas Märdian

parse: Impprove warnings in netplan_delete_connection

bab4df0... by Lukas Märdian

parse: allow deleting only one connection from file

Using the CLI logic of 'netplan set network.TYPE.ID=NULL' (written in Python).

dd23024... by Lukas Märdian

cli:set: delete file if only 'network: {version: 2}' is left

ca146eb... by Lukas Märdian

parse: error handling for netplan_delete_connection API

b53c169... by Lukas Märdian

parse: Add netplan_delete_connection API

a605fb4... by Lukas Märdian

parse: Add netplan_generate API

cafaad9... by Lukas Märdian

tests: move MockCmd into test_utils.py

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