diff options
author | danbst <abcz2.uprola@gmail.com> | 2019-08-05 14:01:45 +0300 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2019-08-05 14:01:45 +0300 |
commit | 91bb646e98808d594b339d3386f7963a546ccfb4 (patch) | |
tree | 4390925c6087d284c11183193044835152f6cea5 /nixos/tests/networking.nix | |
parent | 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca (diff) | |
download | nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.gz nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.bz2 nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.lz nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.xz nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.zst nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.zip |
Revert "mass replace "flip map -> foreach""
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
Diffstat (limited to 'nixos/tests/networking.nix')
-rw-r--r-- | nixos/tests/networking.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index 9553b52850e9..ed9f287d5582 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -21,7 +21,7 @@ let useNetworkd = networkd; firewall.checkReversePath = true; firewall.allowedUDPPorts = [ 547 ]; - interfaces = mkOverride 0 (listToAttrs (foreach vlanIfs (n: + interfaces = mkOverride 0 (listToAttrs (flip map vlanIfs (n: nameValuePair "eth${toString n}" { ipv4.addresses = [ { address = "192.168.${toString n}.1"; prefixLength = 24; } ]; ipv6.addresses = [ { address = "fd00:1234:5678:${toString n}::1"; prefixLength = 64; } ]; |