nixosTests.systemd-initrd-bridge: fix failing test (#341298)

authored by Connor Baker and committed by GitHub 101030bb 5170472d

+10 -7
+10 -7
nixos/tests/systemd-initrd-bridge.nix
··· 24 24 serviceConfig.Type = "oneshot"; 25 25 }; 26 26 27 - networking.primaryIPAddress = "192.168.1.${toString config.virtualisation.test.nodeNumber}"; 27 + networking.primaryIPAddress = lib.mkForce "192.168.1.${toString config.virtualisation.test.nodeNumber}"; 28 + 29 + virtualisation.interfaces.eth1 = { 30 + vlan = 1; 31 + assignIP = false; 32 + }; 33 + virtualisation.interfaces.eth2 = { 34 + vlan = 2; 35 + assignIP = false; 36 + }; 28 37 29 - virtualisation.vlans = [ 30 - 1 31 - 2 32 - ]; 33 38 networking.bridges.br0.interfaces = [ 34 39 "eth1" 35 40 "eth2" 36 41 ]; 37 42 38 43 networking.interfaces = { 39 - eth1.ipv4.addresses = lib.mkForce [ ]; 40 - eth2.ipv4.addresses = lib.mkForce [ ]; 41 44 br0.ipv4.addresses = [ 42 45 { 43 46 address = config.networking.primaryIPAddress;