Logo Search packages:      
Sourcecode: wicd version File versions

def wicd::wnettools::Interface::_check_dhcp_result (   self,
  success 
) [private]

Print and return the correct DHCP connection result. 

Keyword Arguents:
success -- boolean specifying if DHCP was succesful.

Returns:
'success' if success == True, 'dhcp_failed' otherwise.

Definition at line 462 of file wnettools.py.

00462                                          :
        """ Print and return the correct DHCP connection result. 
        
        Keyword Arguents:
        success -- boolean specifying if DHCP was succesful.
        
        Returns:
        'success' if success == True, 'dhcp_failed' otherwise.
        
        """
        if success:
            print 'DHCP connection successful'
            return 'success'
        else:
            print 'DHCP connection failed'
            return 'dhcp_failed'
            
    def StartDHCP(self):


Generated by  Doxygen 1.6.0   Back to index