#NEWLINE# def _create_chain_with_nodes( self , node_ids = None ) : #NEWLINE# #INDENT# node_ids = ( node_ids or [ ] ) #NEWLINE# spec = self . create_servicechain_spec ( nodes = node_ids , expected_res_status = 201 ) [ 'servicechain_spec' ] #NEWLINE# prs = self . _create_redirect_prs ( self [ 'id' ] ) [ 'policy_rule_set' ] #NEWLINE# provider = self . create_policy_target_group ( provided_policy_rule_sets = { #NEWLINE# #INDENT# prs [ 'id' ] : '' , #NEWLINE# #UNINDENT# } ) [ 'policy_target_group' ] #NEWLINE# consumer = self . create_policy_target_group ( consumed_policy_rule_sets = { #NEWLINE# #INDENT# prs [ 'id' ] : '' , #NEWLINE# #UNINDENT# } ) [ 'policy_target_group' ] #NEWLINE# return ( provider , consumer , prs )