MCPcopy Index your code
hub / github.com/retspen/webvirtcloud / int

Method int

vrtManager/IPy.py:205–213  ·  view source on GitHub ↗

Return the first / base / network addess as an (long) integer. The same as IP[0]. >>> "%X" % IP('10.0.0.0/8').int() 'A000000'

(self)

Source from the content-addressed store, hash-verified

203 raise ValueError, "%s has invalid prefix length (%s)" % (repr(self), self._prefixlen)
204
205 def int(self):
206 """Return the first / base / network addess as an (long) integer.
207
208 The same as IP[0].
209
210 >>> "%X" % IP('10.0.0.0/8').int()
211 'A000000'
212 """
213 return self.ip
214
215 def version(self):
216 """Return the IP version of this Object.

Callers 6

netMethod · 0.95
broadcastMethod · 0.95
get_ipv4_networkMethod · 0.80
__init__Method · 0.80
_printPrefixMethod · 0.80
__add__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected