Print the network...how can it be a function?

This commit is contained in:
niten 2023-11-03 11:53:57 -07:00
parent 779e877c54
commit 23b62ed61d
1 changed files with 2 additions and 1 deletions

View File

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