nixpkgs/nixos/lib
Viktor Kleen 6d766ae8b7
nixos/test-driver: deduplicate VLANs
Naively deduplicate VLANs in the python driver for NixOS tests. The
current implementation accidentally works, since the VLan class mutates
the environment. On construction it sets QEMU_VDE_SOCKET_${id} and this
environment variable gets overwritten once a second VLAN with the same
id is constructed. Because the NIC flags passed to qemu just use the
QEMU_VDE_SOCKET_${id} environment variable, this implicitly chooses a
single vde_switch process for each VLAN.

However, this leads to unusable vde_switch processes being spawned in
each test run and as a side effect makes it impossible to access the
correct VLan objects in the interactive test driver. It also makes it
remarkably hard to understand why the current implementation ever
worked.
2022-03-22 13:16:28 +00:00
..
make-options-doc lib/options: Throw error for options without a type 2022-02-28 22:51:41 +01:00
test-driver nixos/test-driver: deduplicate VLANs 2022-03-22 13:16:28 +00:00
build-vms.nix
default.nix
eval-cacheable-options.nix
eval-config-minimal.nix
eval-config.nix nixos: move default module location logic to eval-config.nix 2022-01-27 22:13:35 +01:00
from-env.nix
make-channel.nix
make-disk-image.nix
make-ext4-fs.nix
make-iso9660-image.nix
make-iso9660-image.sh
make-squashfs.nix
make-system-tarball.nix
make-system-tarball.sh
make-zfs-image.nix
qemu-common.nix
systemd-lib.nix nixos: systemd: split off helper functions into systemd-lib 2022-03-15 21:52:13 +01:00
systemd-unit-options.nix nixos/systemd: Add reloadTriggers to services 2022-02-09 15:14:37 +01:00
testing-python.nix nixos/testing-python: actually copy build artefacts 2022-01-26 22:26:19 +01:00
utils.nix Merge pull request #154113 from pennae/systemd-escaping 2022-03-13 19:57:32 +00:00