nixosTests.systemd-initrd-bridge: fix failing test (#341298)
This commit is contained in:
commit
101030bbdb
@ -24,20 +24,23 @@
|
||||
serviceConfig.Type = "oneshot";
|
||||
};
|
||||
|
||||
networking.primaryIPAddress = "192.168.1.${toString config.virtualisation.test.nodeNumber}";
|
||||
networking.primaryIPAddress = lib.mkForce "192.168.1.${toString config.virtualisation.test.nodeNumber}";
|
||||
|
||||
virtualisation.interfaces.eth1 = {
|
||||
vlan = 1;
|
||||
assignIP = false;
|
||||
};
|
||||
virtualisation.interfaces.eth2 = {
|
||||
vlan = 2;
|
||||
assignIP = false;
|
||||
};
|
||||
|
||||
virtualisation.vlans = [
|
||||
1
|
||||
2
|
||||
];
|
||||
networking.bridges.br0.interfaces = [
|
||||
"eth1"
|
||||
"eth2"
|
||||
];
|
||||
|
||||
networking.interfaces = {
|
||||
eth1.ipv4.addresses = lib.mkForce [ ];
|
||||
eth2.ipv4.addresses = lib.mkForce [ ];
|
||||
br0.ipv4.addresses = [
|
||||
{
|
||||
address = config.networking.primaryIPAddress;
|
||||
|
Loading…
x
Reference in New Issue
Block a user