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:
parent
50de54aef1
commit
4eb92df08c
@ -8,7 +8,7 @@ let
|
|||||||
netns = builtins.mapAttrs (n: v: {
|
netns = builtins.mapAttrs (n: v: {
|
||||||
inherit (v) id;
|
inherit (v) id;
|
||||||
address = "169.254.${toString cfg.addressblock}.${toString v.id}";
|
address = "169.254.${toString cfg.addressblock}.${toString v.id}";
|
||||||
availableNetns = builtins.filter isEnabled availableNetns.${n};
|
availableNetns = availableNetns.${n};
|
||||||
}) enabledServices;
|
}) enabledServices;
|
||||||
|
|
||||||
# Symmetric netns connection matrix
|
# Symmetric netns connection matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user