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.
This commit is contained in:
Erik Arvstedt 2020-08-21 22:35:52 +02:00
parent 50de54aef1
commit 4eb92df08c
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 1 additions and 1 deletions

View File

@ -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