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

Method strFullsize

vrtManager/IPy.py:374–386  ·  view source on GitHub ↗

Return a string representation in the non-mangled format. >>> print IP('127.0.0.1').strFullsize() 127.0.0.1 >>> print IP('2001:0658:022a:cafe:0200::1').strFullsize() 2001:0658:022a:cafe:0200:0000:0000:0001

(self, wantprefixlen=None)

Source from the content-addressed store, hash-verified

372 return ret + self._printPrefix(wantprefixlen)
373
374 def strFullsize(self, wantprefixlen=None):
375 """Return a string representation in the non-mangled format.
376
377 >>> print IP('127.0.0.1').strFullsize()
378 127.0.0.1
379 >>> print IP('2001:0658:022a:cafe:0200::1').strFullsize()
380 2001:0658:022a:cafe:0200:0000:0000:0001
381 """
382
383 if self.WantPrefixLen == None and wantprefixlen == None:
384 wantprefixlen = 1
385
386 return intToIp(self.ip, self._ipversion).lower() + self._printPrefix(wantprefixlen)
387
388 def strHex(self, wantprefixlen=None):
389 """Return a string representation in hex format in lower case.

Callers 3

strCompressedMethod · 0.95
strNormalMethod · 0.95
reverseNameMethod · 0.80

Calls 2

_printPrefixMethod · 0.95
intToIpFunction · 0.85

Tested by

no test coverage detected