#NEWLINE# @ log . log_method_call #NEWLINE# def delete_network_service_policy( self , context , network_service_policy_id ) : #NEWLINE# #INDENT# session = context . session #NEWLINE# with session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# network_service_policy = self . get_network_service_policy ( context , network_service_policy_id ) #NEWLINE# policy_context = p_context . NetworkServicePolicyContext ( self , context , network_service_policy ) #NEWLINE# self . policy_driver_manager . delete_network_service_policy_precommit ( policy_context ) #NEWLINE# super ( GroupPolicyPlugin , self ) . delete_network_service_policy ( context , network_service_policy_id ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# pdm = self . policy_driver_manager #NEWLINE# pdm . delete_network_service_policy_postcommit ( policy_context ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'delete_network_service_policy_postcommit failed for network_service_policy %s' ) , network_service_policy_id )