#NEWLINE# @ log . log_method_call #NEWLINE# def update_l2_policy( self , context , l2_policy_id , l2_policy ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# original_l2_policy = self . get_l2_policy ( context , l2_policy_id ) #NEWLINE# updated_l2_policy = super ( GroupPolicyPlugin , self ) . update_l2_policy ( context , l2_policy_id , l2_policy ) #NEWLINE# self . extension_manager . process_update_l2_policy ( session , l2_policy , context ) #NEWLINE# self . _validate_shared_update ( self , context , original_l2_policy , updated_l2_policy , 'l2_policy' ) #NEWLINE# policy_context = p_context . L2PolicyContext ( self , context , updated_l2_policy , original_l2_policy = original_l2_policy ) #NEWLINE# self . policy_driver_manager . update_l2_policy_precommit ( policy_context ) #NEWLINE# #UNINDENT# self . policy_driver_manager . update_l2_policy_postcommit ( policy_context ) #NEWLINE# return updated_l2_policy