#NEWLINE# @ log . log_method_call #NEWLINE# def update_nat_pool( self , context , nat_pool_id , nat_pool ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# original_nat_pool = super ( GroupPolicyPlugin , self ) . get_nat_pool ( context , nat_pool_id ) #NEWLINE# updated_nat_pool = super ( GroupPolicyPlugin , self ) . update_nat_pool ( context , nat_pool_id , nat_pool ) #NEWLINE# self . extension_manager . process_update_nat_pool ( session , nat_pool , updated_nat_pool ) #NEWLINE# self . _validate_shared_update ( self , context , original_nat_pool , updated_nat_pool , 'nat_pool' ) #NEWLINE# policy_context = p_context . NatPoolContext ( self , context , updated_nat_pool , original_nat_pool ) #NEWLINE# self . policy_driver_manager . update_nat_pool_precommit ( policy_context ) #NEWLINE# #UNINDENT# self . policy_driver_manager . update_nat_pool_postcommit ( policy_context ) #NEWLINE# return updated_nat_pool