~ubuntu-core-dev/netplan/+git/ubuntu:upstream/latest

Last commit made on 2024-02-29
Get this branch:
git clone -b upstream/latest https://git.launchpad.net/~ubuntu-core-dev/netplan/+git/ubuntu
Members of Ubuntu Core Development Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
upstream/latest
Repository:
lp:~ubuntu-core-dev/netplan/+git/ubuntu

Recent commits

1c33843... by Lukas Märdian

New upstream version 1.0

45f7cd1... by Lukas Märdian

abi-compat: 1.0 ABI

5fb1a81... by Danilo Egea Gondolfo

docs: add status --diff to the docs

Update the manpage and autocomplete files.

0787625... by Danilo Egea Gondolfo

tests: fix the status --diff integration tests

6d3f0e9... by Danilo Egea Gondolfo

tools/diff.py: drop old diff script

It implemented a PoC of the tabular user interface that will not be used
anymore.

6fce292... by Danilo Egea Gondolfo

state_diff: handle link local IPs and routes

Instead of ignoring link local IPs and routes, check the netdef
'link-local' property to see if the they should be part of the diff.

a7f75a0... by Danilo Egea Gondolfo

libnetplan: expose the link-local setting

The low level API has two new functions that will return a boolean
representing the internal state of the property. In the netdef, this
property is stored in an internal struct that contains two gboolean
variables. To avoid having to expose this struct I decided to separate
it in two functions.

In the Python code, the new propserty 'link_local' will return a list
containing ipv4 or ipv6 or an empty list to mimic the link-local
property in the YAML.

cf0cc62... by Danilo Egea Gondolfo

state_diff: adopt MAC address options

If the MAC address in Netplan is not a valid MAC (it can also be an
option now, such as 'random' and 'permanent'), don't try to diff it
against the system's MAC address.

b6a577e... by Danilo Egea Gondolfo

utils/state_diff: refactor route table lookup methods

utils.route_table_lookup:
 - use the new path of the configuration files. It was changed recently
   in iproute2. It will fallback to the old path if the iproute2 version
   in the system is older.
 - change the dictionary to map names to numbers as well
 - if it fails to open the file, return the standard content found in
   rt_tables.
 - mock this method all over the tests so they will not try to open the
   real file.

state_diff._default_route_tables_name_to_number:
 - use utils.route_table_lookup instead of its own mapping

f187f66... by Lukas Märdian

tests:integration: Be less strict about systemctl daemon-reload (LP: #2048388)