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