From 5ae6580474d0c0eba6441ca554d5a81e120a73a4 Mon Sep 17 00:00:00 2001 From: Philippe Schaaf Date: Thu, 21 Jul 2022 16:34:09 +0200 Subject: [PATCH] add hub mode comment Signed-off-by: Philippe Schaaf --- nixos/lib/test-driver/test_driver/vlan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/lib/test-driver/test_driver/vlan.py b/nixos/lib/test-driver/test_driver/vlan.py index 4d4debedc407..f2a7f250d1d2 100644 --- a/nixos/lib/test-driver/test_driver/vlan.py +++ b/nixos/lib/test-driver/test_driver/vlan.py @@ -32,6 +32,10 @@ class VLan: rootlog.info("start vlan") pty_master, pty_slave = pty.openpty() + # The --hub is required for the scenario determined by + # nixos/tests/networking.nix vlan-ping. + # VLAN Tagged traffic (802.1Q) seams to be blocked if a vde_switch is + # used without the hub mode (flood packets to all ports). self.process = subprocess.Popen( ["vde_switch", "-s", self.socket_dir, "--dirmode", "0700", "--hub"], stdin=pty_slave,