-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bridges: implement vlans, port-vlans, vlan-filtering and vlan-default-pvid options #540
base: main
Are you sure you want to change the base?
bridges: implement vlans, port-vlans, vlan-filtering and vlan-default-pvid options #540
Conversation
NM:bridge:vlan: enable vlan-filtering on bridge, if vlans are set
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
0d99da8
to
0e96bd3
Compare
6407125
to
02564ed
Compare
02564ed
to
2b95080
Compare
Additional info: I've changed the code by @slyon a bit as it seems that for both The |
2b95080
to
4902e90
Compare
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
35b5e1c
to
9c79dc8
Compare
I wonder if it would be nicer to merge the implementations of version: 2
renderer: ...
ethernets:
eno1:
vlans: [99 pvid untagged, 1 untagged]
switchport:
vlans: [4000-4094, 1 pvid, 13 untagged]
bridges:
br0:
interfaces: [eno1, switchport]
vlans: [100 pvid untagged, 42 untagged, 13]
parameters:
vlan-filtering: true
vlan-default-pvid: 123 That's the approach that networkd takes, where In NetworkManager, the VLAN lists also go into the respective interface/connection files, albeit under different sections ( I do see, however, that there are already per-port bridge parameters in Netplan such as I don't have a strong opinion on this, but thought it'd bring it up, hopefully as a way to simplify things a little 🙂 |
Description
This PR is a followup to #127 .
As described in #127:
Implements the vlans & port-vlans option keys for bridges, as required by the "NetworkManager readwrite plugin" spec. Currently only supports the nm backend.
I've rebased the old PR onto the current
main
and it seems to work OK (at least the tests are passing). Additionally added thevlan-filtering
bool that can be forcedtrue
even if novlans
are defined (as described by @chdxD1 in this comment here.Right now I am starting to work onnetworkd
backend. However decided to create this draft PR to enable an early review and to just let others know that I am working on this.I've added
vlan-default-pvid
to set default PVID for a bridge andnetworkd
backend so i think the PR is ready. :)make check-coverage
fails for me incodestyle
test withinnetplan/_build/meson-private/pycompile.py
, which is Meson's file so I believe this is out of scope here, therefore checkingmake check-coverage
in the checklist as passed.I can also see that GitHub actionI think Ubuntu's repositories were fixed already.NetworkManager Autopkgtest / lxd-network-manager
is failing due tolibc6-dev : Depends: libc6 (= 2.39-0ubuntu8.3) but 2.39-0ubuntu8.4 is to be installed
but it also seems to be an issue with Ubuntu repositories I think.Checklist
make check
successfully.make check-coverage
).