#NEWLINE# def _stash_ptg_modified_chains( self , context ) : #NEWLINE# #INDENT# orig_provided_policy_rule_sets = context . original [ 'provided_policy_rule_sets' ] #NEWLINE# curr_provided_policy_rule_sets = context . current [ 'provided_policy_rule_sets' ] #NEWLINE# removed_provided_prs = ( set ( self ) - set ( curr_provided_policy_rule_sets ) ) #NEWLINE# added_provided_prs = ( set ( curr_provided_policy_rule_sets ) - set ( orig_provided_policy_rule_sets ) ) #NEWLINE# context . ptg_chain_map = [ ] #NEWLINE# if ( self . _is_redirect_in_policy_rule_sets ( context , removed_provided_prs ) and ( not self . _is_redirect_in_policy_rule_sets ( context , added_provided_prs ) ) ) : #NEWLINE# #INDENT# context . ptg_chain_map += self . _get_ptg_servicechain_mapping ( context . _plugin_context . session , context . current [ 'id' ] )