#NEWLINE# def _create_simple_chain( self ) : #NEWLINE# #INDENT# node = self . _create_profiled_servicechain_node ( service_type = 'LOADBALANCER' , config = self . DEFAULT_LB_CONFIG ) [ 'servicechain_node' ] #NEWLINE# spec = self . create_servicechain_spec ( nodes = [ node [ 'id' ] ] ) [ 'servicechain_spec' ] #NEWLINE# action = self . create_policy_action ( action_type = 'REDIRECT' , action_value = spec [ 'id' ] ) [ 'policy_action' ] #NEWLINE# classifier = self . create_policy_classifier ( direction = 'bi' , port_range = 80 , protocol = 'tcp' ) [ 'policy_classifier' ] #NEWLINE# rule = self . create_policy_rule ( policy_classifier_id = classifier [ 'id' ] , policy_actions = [ action [ 'id' ] ] ) [ 'policy_rule' ] #NEWLINE# prs = self . create_policy_rule_set ( policy_rules = [ rule [ '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 , node )