team: normalize invalid configuration during load

System Internals / NetworkManager - Beniamino Galvani [redhat.com] - 30 August 2016 11:20 UTC

Now that we validate the JSON syntax of a team/team-port configuration, any existing connection with invalid JSON configuration would fail to load and disappear upon upgrade. Instead, modify the setting plugins to emit a warning but still load the connection with empty configuration.

d6ec009 team: normalize invalid configuration during load
libnm-core/nm-core-internal.h | 5 ++
libnm-core/nm-keyfile-reader.c | 26 +++++++++++
libnm-core/nm-utils-private.h | 3 --
libnm-core/tests/test-keyfile.c | 49 ++++++++++++++++++++
src/settings/plugins/ifcfg-rh/reader.c | 7 +++
.../ifcfg-rh/tests/network-scripts/Makefile.am | 1 +
.../network-scripts/ifcfg-test-team-master-invalid | 4 ++
.../plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 26 +++++++++++
8 files changed, 118 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share