summary refs log tree commit diff
path: root/nixos/tests/bittorrent.nix
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-07-16 17:29:50 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-08-30 07:33:38 -0700
commit86c0f8c549c2ad728e06f8bc11d805fe760e7df8 (patch)
tree9c71752eb9b2a01e4173b598df7f68e9c8d7b496 /nixos/tests/bittorrent.nix
parent1ff4b838758f36dc8c54995e104dd17ba08a65a4 (diff)
downloadnixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.gz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.bz2
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.lz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.xz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.zst
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.zip
Refactor nixos files relying on the old ipAddress / prefixLength / subnetMask attributes
Diffstat (limited to 'nixos/tests/bittorrent.nix')
-rw-r--r--nixos/tests/bittorrent.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix
index 002e012f65f..7eb9c215ee1 100644
--- a/nixos/tests/bittorrent.nix
+++ b/nixos/tests/bittorrent.nix
@@ -16,7 +16,7 @@ let
   miniupnpdConf = nodes: pkgs.writeText "miniupnpd.conf"
     ''
       ext_ifname=eth1
-      listening_ip=${nodes.router.config.networking.interfaces.eth2.ipAddress}/24
+      listening_ip=${(head nodes.router.config.networking.interfaces.eth2.ip4).address}/24
       allow 1024-65535 192.168.2.0/24 1024-65535
     '';
 
@@ -53,7 +53,7 @@ in
         { environment.systemPackages = [ pkgs.transmission ];
           virtualisation.vlans = [ 2 ];
           networking.defaultGateway =
-            nodes.router.config.networking.interfaces.eth2.ipAddress;
+            (head nodes.router.config.networking.interfaces.eth2.ip4).address;
           networking.firewall.enable = false;
         };
 
@@ -81,7 +81,7 @@ in
       # Create the torrent.
       $tracker->succeed("mkdir /tmp/data");
       $tracker->succeed("cp ${file} /tmp/data/test.tar.bz2");
-      $tracker->succeed("transmission-create /tmp/data/test.tar.bz2 -t http://${nodes.tracker.config.networking.interfaces.eth1.ipAddress}:6969/announce -o /tmp/test.torrent");
+      $tracker->succeed("transmission-create /tmp/data/test.tar.bz2 -t http://${(head nodes.tracker.config.networking.interfaces.eth1.ip4).address}:6969/announce -o /tmp/test.torrent");
       $tracker->succeed("chmod 644 /tmp/test.torrent");
 
       # Start the tracker.  !!! use a less crappy tracker