-
Notifications
You must be signed in to change notification settings - Fork 226
bridges: implement vlans, port-vlans, vlan-filtering and vlan-default-pvid options #540
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
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 <[email protected]>
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 <[email protected]>
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: 123That'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 🙂 |
|
Hi @slyon is it possible we could get this going? |
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
mainand it seems to work OK (at least the tests are passing). Additionally added thevlan-filteringbool that can be forcedtrueeven if novlansare defined (as described by @chdxD1 in this comment here.Right now I am starting to work onnetworkdbackend. 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-pvidto set default PVID for a bridge andnetworkdbackend so i think the PR is ready. :)make check-coveragefails for me incodestyletest withinnetplan/_build/meson-private/pycompile.py, which is Meson's file so I believe this is out of scope here, therefore checkingmake check-coveragein the checklist as passed.I can also see that GitHub actionI think Ubuntu's repositories were fixed already.NetworkManager Autopkgtest / lxd-network-manageris failing due tolibc6-dev : Depends: libc6 (= 2.39-0ubuntu8.3) but 2.39-0ubuntu8.4 is to be installedbut it also seems to be an issue with Ubuntu repositories I think.Checklist
make checksuccessfully.make check-coverage).