Skip to content

Commit

Permalink
examples: pass basic l2 configuration
Browse files Browse the repository at this point in the history
bisdn/bisdn-linux#101 has raised the attention to the need of
 having a set of scripts to setup the switch with a default behaviour that remains.

Rename the older systemd-networkd files to have an explicit infix "l2-learn".

Signed-off-by: Rubens Figueiredo <[email protected]>
  • Loading branch information
rubensfig committed Jun 3, 2024
1 parent 6186280 commit 389d559
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[NetDev]
Name=switchbr
Name=swbridge
Kind=bridge

[Bridge]
Expand Down
7 changes: 7 additions & 0 deletions examples/networkd/20-bridge.l2-learn.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Match]
Name=swbridge

[BridgeVLAN]
PVID=1
EgressUntagged=1
VLAN=1
5 changes: 5 additions & 0 deletions examples/networkd/20-port.l2-learn.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=port*

[Network]
Bridge=swbridge
10 changes: 0 additions & 10 deletions examples/networkd/port.network

This file was deleted.

2 changes: 0 additions & 2 deletions examples/networkd/switchbr.network

This file was deleted.

0 comments on commit 389d559

Please sign in to comment.