1{
2 name = "ifstate-partial-broken-config";
3
4 nodes.machine = {
5 imports = [ ../../modules/profiles/minimal.nix ];
6
7 virtualisation.interfaces.eth1.vlan = 1;
8
9 networking.ifstate = {
10 enable = true;
11 settings.interfaces = {
12 eth1 = {
13 addresses = [ "2001:0db8:a::1/64" ];
14 link = {
15 state = "up";
16 kind = "physical";
17 };
18 };
19 # non-existent interface; ifstate should apply eth1 and do not distrupt the boot process
20 eth2 = {
21 addresses = [ "2001:0db8:b::1/64" ];
22 link = {
23 state = "up";
24 kind = "physical";
25 };
26 };
27 };
28 };
29 };
30
31 testScript = # python
32 ''
33 start_all()
34
35 machine.wait_for_unit("default.target")
36
37 machine.wait_until_succeeds("ping -c 1 2001:0db8:a::1")
38 '';
39}