nixos/tests: support up to 255 nodes in NixOS tests
commit0410f5dff9ff952bfe129e522933c4c4ef6b3815
authorBas van Dijk <v.dijk.bas@gmail.com>
dateMon 20 Apr 2020, 12:01 (7 years ago)
parent00022fb
nixos/lib/qemu-flags.nix+5−1
@@ -2,7 +2,11 @@
22{ pkgs }:
33
44let
5− zeroPad = n: if n < 10 then "0${toString n}" else toString n;
5+ zeroPad = n:
6+ pkgs.lib.optionalString (n < 16) "0" +
7+ (if n > 255
8+ then throw "Can't have more than 255 nets or nodes!"
9+ else pkgs.lib.toHex n);
610in
711
812{