summary refs log tree commit diff
path: root/nixos/tests/nsd.nix
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2017-12-03 05:14:54 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2018-02-17 14:57:07 +0100
commite239c1e5820bdbb3d94ccc46e2d6756b0d37057d (patch)
tree949c07008657835d1ac6d6b247a50d05d7152cae /nixos/tests/nsd.nix
parentc1bed05e341756f7fdfa73035c7f1e078e49be3d (diff)
downloadnixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.gz
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.bz2
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.lz
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.xz
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.tar.zst
nixpkgs-e239c1e5820bdbb3d94ccc46e2d6756b0d37057d.zip
nixos/tests: rename IP addresses/routes options
Diffstat (limited to 'nixos/tests/nsd.nix')
-rw-r--r--nixos/tests/nsd.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/nixos/tests/nsd.nix b/nixos/tests/nsd.nix
index 0b1082056f6..ad4d4f82243 100644
--- a/nixos/tests/nsd.nix
+++ b/nixos/tests/nsd.nix
@@ -15,25 +15,31 @@ in import ./make-test.nix ({ pkgs, ...} : {
     clientv4 = { lib, nodes, ... }: {
       imports = [ common ];
       networking.nameservers = lib.mkForce [
-        nodes.server.config.networking.interfaces.eth1.ipAddress
+        (lib.head nodes.server.config.networking.interfaces.eth1.ipv4.addresses).address
+      ];
+      networking.interfaces.eth1.ipv4.addresses = [
+        { address = "192.168.0.2"; prefixLength = 24; }
       ];
-      networking.interfaces.eth1.ipAddress = "192.168.0.2";
-      networking.interfaces.eth1.prefixLength = 24;
     };
 
     clientv6 = { lib, nodes, ... }: {
       imports = [ common ];
       networking.nameservers = lib.mkForce [
-        nodes.server.config.networking.interfaces.eth1.ipv6Address
+        (lib.head nodes.server.config.networking.interfaces.eth1.ipv6.addresses).address
+      ];
+      networking.interfaces.eth1.ipv4.addresses = [
+        { address = "dead:beef::2"; prefixLength = 24; }
       ];
-      networking.interfaces.eth1.ipv6Address = "dead:beef::2";
     };
 
     server = { lib, ... }: {
       imports = [ common ];
-      networking.interfaces.eth1.ipAddress = "192.168.0.1";
-      networking.interfaces.eth1.prefixLength = 24;
-      networking.interfaces.eth1.ipv6Address = "dead:beef::1";
+      networking.interfaces.eth1.ipv4.addresses = [
+        { address = "192.168.0.1"; prefixLength = 24; }
+      ];
+      networking.interfaces.eth1.ipv6.addresses = [
+        { address = "dead:beef::1"; prefixLength = 64; }
+      ];
       services.nsd.enable = true;
       services.nsd.interfaces = lib.mkForce [];
       services.nsd.zones."example.com.".data = ''