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):
|