#NEWLINE# def stop( self ) : #NEWLINE# #INDENT# 'Stop the controller(s), switches and hosts' #NEWLINE# info ( '*** Stopping host services\n' ) #NEWLINE# for host in self . hosts : #NEWLINE# #INDENT# returnCodes = host . autoStopServices ( ) #NEWLINE# if returnCodes : #NEWLINE# #INDENT# statusStr = ( '%s: ' % host ) #NEWLINE# for ( service , returnCode ) in returnCodes . iteritems ( ) : #NEWLINE# #INDENT# if ( returnCode [ 'ret' ] == 0 ) : #NEWLINE# #INDENT# result = 'OK' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result = 'FAIL' #NEWLINE# #UNINDENT# statusStr += ( '%s (%s) ' % ( service , result ) ) #NEWLINE# #UNINDENT# info ( ( statusStr + '\n' ) ) #NEWLINE# #UNINDENT# #UNINDENT# Mininet . stop ( self )