summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2019-09-29 15:11:00 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2019-09-29 15:25:11 +0200
commit1fb381844029d0bfd5f3ca85577695c112ce41f1 (patch)
treefbec76327ea244ab6494aabaa2a257762f787674
parent2436175f6351b265398405ece62a2124d7c68440 (diff)
nixos/tests/ferm: wait for DAD timeout before testing
The test has recently been failing due to the IPv6 address on the server still being in the tentative state, when the client sends its first request. The server will not start using the IPv6 address until DAD has completed. Scripted networking seems not to wait for DAD completion before completing network-online.target, so let's switch to networkd instead, which does.
-rw-r--r--nixos/tests/ferm.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/ferm.nix b/nixos/tests/ferm.nix
index b8e8663e3ad2..14c1cd44f5ce 100644
--- a/nixos/tests/ferm.nix
+++ b/nixos/tests/ferm.nix
@@ -22,6 +22,7 @@ import ./make-test.nix ({ pkgs, ...} : {
{
networking = {
dhcpcd.enable = false;
+ useNetworkd = true;
interfaces.eth1.ipv6.addresses = mkOverride 0 [ { address = "fd00::1"; prefixLength = 64; } ];
interfaces.eth1.ipv4.addresses = mkOverride 0 [ { address = "192.168.1.1"; prefixLength = 24; } ];
};