Logo Search packages:      
Sourcecode: virt-manager version File versions  Download package

def virtManager::IPy::IPint::strDec (   self,
  wantprefixlen = None 
)

Return a string representation in decimal format.

>>> print IP('127.0.0.1').strDec()
2130706433
>>> print IP('2001:0658:022a:cafe:0200::1').strDec()
42540616829182469433547762482097946625

Definition at line 503 of file IPy.py.

00503                                           :
        """Return a string representation in decimal format.

        >>> print IP('127.0.0.1').strDec()
        2130706433
        >>> print IP('2001:0658:022a:cafe:0200::1').strDec()
        42540616829182469433547762482097946625
        """

        if self.WantPrefixLen == None and wantprefixlen == None:
            wantprefixlen = 0

        x =  str(self.ip)
        if x[-1] == 'L':
            x = x[:-1]
        return x + self._printPrefix(wantprefixlen)

    def iptype(self):


Generated by  Doxygen 1.6.0   Back to index