#NEWLINE# def network_list( self , context , networks ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ids = self . network_client . network_list ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# LOG . exception ( e ) #NEWLINE# raise exception . OpenStackException ( e . status_code , e . message ) #NEWLINE# #UNINDENT# for network in networks : #NEWLINE# #INDENT# if ( network [ 'neutron_network_id' ] in ids ) : #NEWLINE# #INDENT# network [ 'status' ] = 'Exist' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# network [ 'status' ] = 'NotExist' #NEWLINE# #UNINDENT# #UNINDENT# return networks