From 3e26bd96752e80440a0bc8f8e18356a4dc188362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 16 Aug 2024 13:01:06 +0200 Subject: [PATCH] kexec-installer/test: remove deprecated routeconfig --- nix/kexec-installer/test.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/kexec-installer/test.nix b/nix/kexec-installer/test.nix index 70db2f0..6abac33 100644 --- a/nix/kexec-installer/test.nix +++ b/nix/kexec-installer/test.nix @@ -54,7 +54,13 @@ makeTest' { "192.168.42.1/24" "42::1/64" ]; - routes = [ + routes = if pkgs.lib.versionAtLeast lib.version "24.11" then [ + { Destination = "192.168.43.0/24"; } + { Destination = "192.168.44.0/24"; Gateway = "192.168.43.1"; } + { Destination = "192.168.45.0/24"; Gateway = "43::1"; } + { Destination = "43::0/64"; } + { Destination = "44::1/64"; Gateway = "43::1"; } + ] else [ # Some static routes that we want to see in the kexeced image { routeConfig = { Destination = "192.168.43.0/24"; }; } { routeConfig = { Destination = "192.168.44.0/24"; Gateway = "192.168.43.1"; }; }