mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/tests: fix bonding test
This commit is contained in:
parent
d9e47de23e
commit
441c242855
1 changed files with 12 additions and 0 deletions
|
@ -238,6 +238,18 @@ let
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
# virtio-net reports its speed and duplex as "unknown" by default,
|
||||
# which confuses the 802.3ad logic. However, you can just tell it
|
||||
# to pretend to have any link speed with ethtool, so do that.
|
||||
systemd.services.fake-link-settings = {
|
||||
path = [ pkgs.ethtool ];
|
||||
script = ''
|
||||
ethtool -s enp1s0 speed 1000 duplex full
|
||||
ethtool -s enp2s0 speed 1000 duplex full
|
||||
'';
|
||||
wantedBy = [ "network.target" ];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue