#NEWLINE# @ log . log_method_call #NEWLINE# def delete_servicechain_instance( self , context , servicechain_instance_id ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# sc_instance = self . get_servicechain_instance ( context , servicechain_instance_id ) #NEWLINE# sc_context = servicechain_context . ServiceChainInstanceContext ( self , context , sc_instance ) #NEWLINE# self . driver_manager . delete_servicechain_instance_precommit ( sc_context ) #NEWLINE# super ( ServiceChainPlugin , self ) . delete_servicechain_instance ( self , servicechain_instance_id ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . driver_manager . delete_servicechain_instance_postcommit ( sc_context ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'delete_servicechain_instance_postcommit failed for servicechain_instance %s' ) , servicechain_instance_id )