MCPcopy Create free account
hub / github.com/apache/cloudstack / numToIp

Method numToIp

python/incubation/cloud-web-ipallocator.py:66–67  ·  view source on GitHub ↗
(self, num)

Source from the content-addressed store, hash-verified

64 return struct.unpack("!I", socket.inet_aton(ip))[0]
65
66 def numToIp(self, num):
67 return socket.inet_ntoa(struct.pack('!I', num))
68
69 def getFreeIP(self):
70 if len(self.availIP) > 0:

Callers 1

getFreeIPMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected