toString ip component
This commit is contained in:
parent
be1956e895
commit
e2ecff828c
|
@ -36,7 +36,7 @@ let
|
||||||
networkHostsByComponent =
|
networkHostsByComponent =
|
||||||
mapAttrs' (ip: hostname: nameValuePair (getLastIpComponent ip) hostname)
|
mapAttrs' (ip: hostname: nameValuePair (getLastIpComponent ip) hostname)
|
||||||
(getNetworkHosts network ipHostMap);
|
(getNetworkHosts network ipHostMap);
|
||||||
ptrEntry = ip: hostname: "${ip} IN PTR ${hostname}.";
|
ptrEntry = ip: hostname: "${toString ip} IN PTR ${hostname}.";
|
||||||
getHostname = n:
|
getHostname = n:
|
||||||
if hasAttr n networkHostsByComponent then
|
if hasAttr n networkHostsByComponent then
|
||||||
networkHostsByComponent."${n}"
|
networkHostsByComponent."${n}"
|
||||||
|
|
Loading…
Reference in New Issue