Loading nixos/tests/networking/networkd-and-scripted.nix +8 −0 Original line number Diff line number Diff line Loading @@ -132,6 +132,14 @@ let client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q '192.168.2'") client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q 'fd00:1234:5678:2:'") with subtest("Wait until we have received the nameservers"): if "${builtins.toJSON networkd}" == "true": client.wait_until_succeeds("resolvectl status enp2s0 | grep -q 2001:db8::1") client.wait_until_succeeds("resolvectl status enp2s0 | grep -q 192.168.2.1") else: client.wait_until_succeeds("resolvconf -l | grep -q 2001:db8::1") client.wait_until_succeeds("resolvconf -l | grep -q 192.168.2.1") with subtest("Test vlan 1"): client.wait_until_succeeds("ping -c 1 192.168.1.1") client.wait_until_succeeds("ping -c 1 fd00:1234:5678:1::1") Loading nixos/tests/networking/router.nix +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ AdvSendAdvert on; AdvManagedFlag on; AdvOtherConfigFlag on; RDNSS 2001:db8::1 {}; prefix fd00:1234:5678:${toString n}::/64 { AdvAutonomous off; Loading Loading
nixos/tests/networking/networkd-and-scripted.nix +8 −0 Original line number Diff line number Diff line Loading @@ -132,6 +132,14 @@ let client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q '192.168.2'") client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q 'fd00:1234:5678:2:'") with subtest("Wait until we have received the nameservers"): if "${builtins.toJSON networkd}" == "true": client.wait_until_succeeds("resolvectl status enp2s0 | grep -q 2001:db8::1") client.wait_until_succeeds("resolvectl status enp2s0 | grep -q 192.168.2.1") else: client.wait_until_succeeds("resolvconf -l | grep -q 2001:db8::1") client.wait_until_succeeds("resolvconf -l | grep -q 192.168.2.1") with subtest("Test vlan 1"): client.wait_until_succeeds("ping -c 1 192.168.1.1") client.wait_until_succeeds("ping -c 1 fd00:1234:5678:1::1") Loading
nixos/tests/networking/router.nix +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ AdvSendAdvert on; AdvManagedFlag on; AdvOtherConfigFlag on; RDNSS 2001:db8::1 {}; prefix fd00:1234:5678:${toString n}::/64 { AdvAutonomous off; Loading