Include the last number in the range
This commit is contained in:
parent
30b88e6eea
commit
9e1e23bfc6
|
@ -13,7 +13,7 @@ let
|
||||||
assert base < top;
|
assert base < top;
|
||||||
let
|
let
|
||||||
rangeFun = base: top:
|
rangeFun = base: top:
|
||||||
if base == top then [ ] else [ base ] ++ (rangeFun (base + 1) top);
|
if base == top then [ base ] else [ base ] ++ (rangeFun (base + 1) top);
|
||||||
in rangeFun base top;
|
in rangeFun base top;
|
||||||
|
|
||||||
getNetworkHosts = network: filterAttrs (ip: _: ipv4OnNetwork ip network);
|
getNetworkHosts = network: filterAttrs (ip: _: ipv4OnNetwork ip network);
|
||||||
|
|
Loading…
Reference in New Issue