selectAttrs -> filterAttrs

This commit is contained in:
niten 2023-11-03 11:05:21 -07:00
parent af6fcd6a8c
commit cb58f7b80d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ let
if base == top then [ ] else [ base ] ++ (rangeFun (base + 1) top);
in rangeFun base top;
getNetworkHosts = network: selectAttrs (ip: _: ipv4OnNetwork ip network);
getNetworkHosts = network: filterAttrs (ip: _: ipv4OnNetwork ip network);
getLastIpComponent = ip: head (reverseList (splitString "." ip));