all: support bridge vlan ranges

System Internals / NetworkManager - Beniamino Galvani [redhat.com] - 18 April 2019 07:39 EDT

In some cases it is convenient to specify ranges of bridge vlans, as already supported by iproute2 and natively by kernel. With this commit it becomes possible to add a range in this way:

nmcli connection modify eth0-slave +bridge-port.vlans "100-200 untagged"

vlan ranges can't be PVIDs because only one PVID vlan can exist.

https://bugzilla.redhat.com/show_bug.cgi?id=1652910

709351577 all: support bridge vlan ranges
clients/common/nm-meta-setting-desc.c | 10 +-
clients/common/settings-docs.h.in | 4 +-
libnm-core/nm-keyfile.c | 98 +++++++-------
libnm-core/nm-setting-bridge-port.c | 24 +++-
libnm-core/nm-setting-bridge-port.h | 4 +-
libnm-core/nm-setting-bridge.c | 141 ++++++++++++++++-----
libnm-core/nm-setting-bridge.h | 8 +-
libnm-core/nm-utils.c | 81 +++++++-----
libnm-core/tests/test-keyfile.c | 43 ++++---
libnm-core/tests/test-setting.c | 15 ++-
libnm/libnm.ver | 2 +-
src/devices/nm-device-bridge.c | 6 +-
src/platform/nm-linux-platform.c | 11 +-
src/platform/nm-platform.c | 6 +-
src/platform/nm-platform.h | 3 +-
.../plugins/ifcfg-rh/nms-ifcfg-rh-writer.c | 2 +-
.../ifcfg-Test_Write_Bridge_Component.cexpected | 2 +-
.../plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 14 +-
18 files changed, 310 insertions(+), 164 deletions(-)

Upstream: cgit.freedesktop.org


  • Share