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 nixosTest: Provide system.build.networkConfig 2021-10-17 23:56:52 +02:00
default.nix nixos/lib: Add featureFlags, use it for minimal modules 2022-01-10 12:36:57 +01:00
eval-cacheable-options.nix nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
eval-config-minimal.nix nixos/lib: Clarify that nixos.evalModules impl is NOT experimental 2022-01-10 12:36:57 +01:00
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 Remove incorrect sentence from make-channel comment 2018-11-04 20:45:49 +01:00
make-disk-image.nix make-disk-image: Make additionalPaths work with Nix 2.4 2021-11-29 21:11:15 +01:00
make-ext4-fs.nix nixos/lib/make-ext4-fs: Fix: `resize2fs -M' can leave insufficient slack 2021-05-31 21:35:51 +02:00
make-iso9660-image.nix nixos: use nativeBuildInputs in make- iso9660-image and system-tarball 2020-11-18 14:05:30 +01:00
make-iso9660-image.sh installer/cd-dvd/iso-image: avoid leaking build timestamps on non-x86 2022-01-05 12:05:15 -06:00
make-squashfs.nix make-squashfs: use $NIX_BUILD_CORES or 48 cores if above 48 2021-12-08 19:23:31 +02:00
make-system-tarball.nix nixos: use nativeBuildInputs in make- iso9660-image and system-tarball 2020-11-18 14:05:30 +01:00
make-system-tarball.sh use closure-info for building system tarball 2018-11-07 12:52:53 +08:00
make-zfs-image.nix treewide: refactor isi686 && isx86_64 -> isx86 2021-11-20 17:50:41 -08:00
qemu-common.nix Revert "qemu, runInLinuxVM: change default cpu to qemu64" 2022-01-20 15:29:33 +00:00
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