Logo Search packages:      
Sourcecode: wicd version File versions

def wicd::wnettools::Interface::GetIP (   self  )  [inherited]

Get the IP address of the interface.

Returns:
The IP address of the interface in dotted quad form.

Definition at line 532 of file wnettools.py.

00532                    :
        """ Get the IP address of the interface.

        Returns:
        The IP address of the interface in dotted quad form.

        """
        if not self.iface: return False
        cmd = 'ifconfig ' + self.iface
        if self.verbose: print cmd
        output = misc.Run(cmd)
        return misc.RunRegex(ip_pattern, output)
    
    def IsUp(self):


Generated by  Doxygen 1.6.0   Back to index