summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Haupert <mail@vincent-haupert.de>2021-01-30 13:25:32 +0100
committerVincent Haupert <mail@vincent-haupert.de>2021-01-31 01:49:24 +0100
commit730da50f8512f134d119a2fa4ca12e91bc38a338 (patch)
tree24823235ee39fba6cbf861ededfc10936338d6e9
parente6660ffe7ff0a516bf6347d01aca7231129c4c03 (diff)
downloadnixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar.gz
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar.bz2
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar.lz
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar.xz
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.tar.zst
nixpkgs-730da50f8512f134d119a2fa4ca12e91bc38a338.zip
nixos/tests: adapt systemd-networkd-ipv6-prefix-delegation
-rw-r--r--nixos/tests/systemd-networkd-ipv6-prefix-delegation.nix20
1 files changed, 8 insertions, 12 deletions
diff --git a/nixos/tests/systemd-networkd-ipv6-prefix-delegation.nix b/nixos/tests/systemd-networkd-ipv6-prefix-delegation.nix
index bce78f09fdc..5831c8692f6 100644
--- a/nixos/tests/systemd-networkd-ipv6-prefix-delegation.nix
+++ b/nixos/tests/systemd-networkd-ipv6-prefix-delegation.nix
@@ -165,7 +165,7 @@ import ./make-test-python.nix ({pkgs, ...}: {
               # accept the delegated prefix.
               PrefixDelegationHint  = "::/48";
             };
-            ipv6PrefixDelegationConfig = {
+            ipv6SendRAConfig = {
               # Let networkd know that we would very much like to use DHCPv6
               # to obtain the "managed" information. Not sure why they can't
               # just take that from the upstream RAs.
@@ -179,24 +179,20 @@ import ./make-test-python.nix ({pkgs, ...}: {
             name = "eth2";
             networkConfig = {
               Description = "Client interface";
-              # the client shouldn't be allowed to send us RAs, that would be weird.
+              # The client shouldn't be allowed to send us RAs, that would be weird.
               IPv6AcceptRA = false;
 
-              # Just delegate prefixes from the DHCPv6 PD pool.
-              # If you also want to distribute a local ULA prefix you want to
-              # set this to `yes` as that includes both static prefixes as well
-              # as PD prefixes.
-              IPv6PrefixDelegation = "dhcpv6";
+              # Delegate prefixes from the DHCPv6 PD pool.
+              DHCPv6PrefixDelegation = true;
+              IPv6SendRA = true;
             };
-            # finally "act as router" (according to systemd.network(5))
-            ipv6PrefixDelegationConfig = {
-              RouterLifetimeSec = 300; # required as otherwise no RA's are being emitted
 
-              # In a production environment you should consider setting these as well:
+            # In a production environment you should consider setting these as well:
+            # ipv6SendRAConfig = {
               #EmitDNS = true;
               #EmitDomains = true;
               #DNS= = "fe80::1"; # or whatever "well known" IP your router will have on the inside.
-            };
+            # };
 
             # This adds a "random" ULA prefix to the interface that is being
             # advertised to the clients.