Add support for isolated parameter

Add the "Isolated" parameter in the *.network file, e.g.,

[Bridge]
Isolated=true|false

When the Isolated parameter is true, traffic coming out of this port
will only be forward to other ports whose Isolated parameter is false.

When Isolated is not specified, the port uses the kernel default
setting (false).

The "Isolated" parameter was introduced in Linux 4.19.
See man bridge(8) for more details.
But even though the kernel and bridge/iproute2 recognize the "Isolated"
parameter, systemd-networkd did not have a way to set it.
This commit is contained in:
Santa Wiryaman
2022-02-09 17:37:37 +09:00
committed by Yu Watanabe
parent 10139b4e3c
commit 97f27f8a16
11 changed files with 25 additions and 0 deletions
@@ -7,6 +7,7 @@ Bridge=bridge99
[Bridge]
Cost=400
HairPin = true
Isolated = true
FastLeave = true
UnicastFlood = true
MulticastToUnicast = true
@@ -2,6 +2,7 @@
Cost=
UseBPDU=
HairPin=
Isolated=
UnicastFlood=
FastLeave=
Priority=