From 4eb92df08c7ae58d27d74140742826d5fa3a28c7 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 21 Aug 2020 22:35:52 +0200 Subject: [PATCH] netns: remove redundant filter The 'availableNetns' connection matrix only consists of enabled entries, so no extra filtering is needed. Reason: availableNetns starts with the filtered 'base' and is then symmetrised. --- modules/netns-isolation.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/netns-isolation.nix b/modules/netns-isolation.nix index 05fc0d2..408676a 100644 --- a/modules/netns-isolation.nix +++ b/modules/netns-isolation.nix @@ -8,7 +8,7 @@ let netns = builtins.mapAttrs (n: v: { inherit (v) id; address = "169.254.${toString cfg.addressblock}.${toString v.id}"; - availableNetns = builtins.filter isEnabled availableNetns.${n}; + availableNetns = availableNetns.${n}; }) enabledServices; # Symmetric netns connection matrix