#NEWLINE# @ log . log_method_call #NEWLINE# def delete_nat_pool( self , context , nat_pool_id , check_unused = False ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# es = self . get_nat_pool ( context , nat_pool_id ) #NEWLINE# policy_context = p_context . NatPoolContext ( self , context , es ) #NEWLINE# self . policy_driver_manager . delete_nat_pool_precommit ( policy_context ) #NEWLINE# super ( GroupPolicyPlugin , self ) . delete_nat_pool ( context , context ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . policy_driver_manager . delete_nat_pool_postcommit ( policy_context ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'delete_nat_pool_postcommit failed for nat_pool %s' ) , nat_pool_id )