From 389d559f0ebea1fd688b9a9b2a56c218e5bcfedd Mon Sep 17 00:00:00 2001 From: Rubens Figueiredo Date: Thu, 2 May 2024 10:19:13 +0200 Subject: [PATCH] examples: pass basic l2 configuration https://github.com/bisdn/bisdn-linux/issues/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 --- .../{switchbr.netdev => 20-bridge.l2-learn.netdev} | 2 +- examples/networkd/20-bridge.l2-learn.network | 7 +++++++ examples/networkd/20-port.l2-learn.network | 5 +++++ examples/networkd/port.network | 10 ---------- examples/networkd/switchbr.network | 2 -- 5 files changed, 13 insertions(+), 13 deletions(-) rename examples/networkd/{switchbr.netdev => 20-bridge.l2-learn.netdev} (81%) create mode 100644 examples/networkd/20-bridge.l2-learn.network create mode 100644 examples/networkd/20-port.l2-learn.network delete mode 100644 examples/networkd/port.network delete mode 100644 examples/networkd/switchbr.network diff --git a/examples/networkd/switchbr.netdev b/examples/networkd/20-bridge.l2-learn.netdev similarity index 81% rename from examples/networkd/switchbr.netdev rename to examples/networkd/20-bridge.l2-learn.netdev index 2eb317bc8..0b1c70def 100644 --- a/examples/networkd/switchbr.netdev +++ b/examples/networkd/20-bridge.l2-learn.netdev @@ -1,5 +1,5 @@ [NetDev] -Name=switchbr +Name=swbridge Kind=bridge [Bridge] diff --git a/examples/networkd/20-bridge.l2-learn.network b/examples/networkd/20-bridge.l2-learn.network new file mode 100644 index 000000000..23f73ca09 --- /dev/null +++ b/examples/networkd/20-bridge.l2-learn.network @@ -0,0 +1,7 @@ +[Match] +Name=swbridge + +[BridgeVLAN] +PVID=1 +EgressUntagged=1 +VLAN=1 diff --git a/examples/networkd/20-port.l2-learn.network b/examples/networkd/20-port.l2-learn.network new file mode 100644 index 000000000..36d2cf8f6 --- /dev/null +++ b/examples/networkd/20-port.l2-learn.network @@ -0,0 +1,5 @@ +[Match] +Name=port* + +[Network] +Bridge=swbridge diff --git a/examples/networkd/port.network b/examples/networkd/port.network deleted file mode 100644 index 358979e58..000000000 --- a/examples/networkd/port.network +++ /dev/null @@ -1,10 +0,0 @@ -[Match] -Name=port* - -[Network] -Bridge=switchbr - -[BridgeVLAN] -PVID=1 -EgressUntagged=1 -VLAN=1-10 diff --git a/examples/networkd/switchbr.network b/examples/networkd/switchbr.network deleted file mode 100644 index cb2d72d89..000000000 --- a/examples/networkd/switchbr.network +++ /dev/null @@ -1,2 +0,0 @@ -[Match] -Name=switchbr