netplan:admin-status

Last commit made on 2021-05-26
Get this branch:
git clone -b admin-status https://git.launchpad.net/netplan

Branch merges

Branch information

Name:
admin-status
Repository:
lp:netplan

Recent commits

54ae76e... by Łukasz Zemczak

Merge branch 'master' into admin-status

833952e... by Lukas Märdian

Fix ABI regression LP: #1922898 FR-1273 (#206)

In libnetplan v0.102 we introduced a regression, by breaking the ABI compatibility with netplan.io v0.101 (https://pad.lv/1922898)
This happened by introducing two new settings to the NetplanNetDefinition struct (char* filename and guint tunnel.ttl), modifying the memory layout, thus breaking applications linked against older versions of libnetplan0.

For char* filename, we can fix the problem by moving the new field to the end of the NetplanNetDefinition struct, thus not modifying the existing data layout, but only appending to it for the newer version.

For guint netdef->tunnels.ttl we cannot easily fix the problem easily, as this is a struct inside a struct and there seems to be only one byte left (at least on x86_64) before we hit the memory boundary, while this new guint field needs 4 bytes. So we rename that field as tunnel_ttl and append it to the end of the net_definition struct.

COMMITS:
* Revert "Added TTL option for tunnels (LP: #1846783) (#194)"
This reverts commit 6c8ed65df7c7f31280d5d27b67195a1e9a746e7a.
* parse.h: move new 'filename' pointer to the end to avoid changes in the memory layout
* Revert "Revert "Added TTL option for tunnels (LP: #1846783) (#194)""
This reverts commit 97d7d35704f3c3b80ba63e4f054fd8ac6303ba37.
* parse: fix ABI compatibility with tunnel.ttl
* doc: update tunnel_ttl documentation

cab1a83... by Łukasz Zemczak

Update src/nm.c

Co-authored-by: Lukas Märdian <email address hidden>

9f32384... by Łukasz Zemczak

Move the new activation_mode struct member to the end of the struct and bump the netplan minimum version for the feature.

1e22b65... by Łukasz Zemczak

Merge branch 'master' of github.com:canonical/netplan into admin-status

dd4db6b... by Lukas Märdian

cli: SNAP special handling: improve test coverage and error handling (#209)

Improve test coverage and handle additional error cases.

This is a follow-up for #208 wrt. snapcore/snapd#10212

2eafea3... by Lukas Märdian

dbus:cli: implement io.netplan.Netplan.Generate() (#208)

Proxy the 'netplan generate' CLI via DBus, if called from within a snap,
to work around the strict AppArmor confinement.

see: snapcore/snapd#10212

COMMITS:
* dbus:cli: implement io.netplan.Netplan.Generate()
Proxy the 'netplan generate' CLI via DBus, if called from within a snap,
to work around the strict AppArmor confinement.
see: https://github.com/snapcore/snapd/pull/10212
* doc: mention Netplan.Generate() DBus method

da3fab1... by Lukas Märdian

cli:set: Fix netplan-set on Core20 (#207)

Using os.replace() leads to "Invalid cross-device link" errors on Core20 setups, due to having different mounts.
Use shutil.copy2() & os.remove() instead.

* cli:set: Fix netplan-set on Core20
* cli:set: use shutil.copy2()

a42fc2f... by Peter MacKinnon

Fix parsing of OVS values with colons (LP: #1913906) (#203)

Fixes the parse error for dict values that include ":"

COMMITS:
* Fix parsing of values with colons
* Update test_ovs.py
Fix pycodestyle pipeline
* Update ovs.py
One more pycodestyle error
* Update test_ovs.py
Add raw string to cure PEP8 fail
* tests:ovs: improve coverage for colon values

Co-authored-by: Pete MacKinnon <email address hidden>
Co-authored-by: Lukas Märdian <email address hidden>

2f7d973... by Lukas Märdian

tests:tunnels: improve flaky wireguard test with wait_output()