Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Str Str Str Str Num Str Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Str keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword ListLoad keyword ListLoad keyword ListLoad keyword ListLoad Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Dict Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str Str Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str Str Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str Str Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str ListLoad Dict Str Str Str Str Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A unittest N/A mock networkapiclient.exception IpNaoExisteError hm.lb_managers networkapi_cloudstack hm.model load_balancer host NetworkApiCloudstackLBTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self conf N/A CLOUDSTACK_API_URL CLOUDSTACK_API_KEY CLOUDSTACK_SECRET_KEY CLOUDSTACK_PROJECT_ID CLOUDSTACK_VIP_NETWORK_INDEX NETWORKAPI_ENDPOINT NETWORKAPI_USER NETWORKAPI_PASSWORD NETWORKAPI_CLIENTE_TXT NETWORKAPI_FINALIDADE_TXT NETWORKAPI_AMBIENTE_P44_TXT VIP_HEALTHCHECK VIP_HEALTHCHECK_EXPECT VIP_METHOD_BAL VIP_PERSISTENCE VIP_CACHE VIP_MAXCONN VIP_BUSINESS_AREA VIP_SERVICE_NAME VIP_PORT_MAPPING http://localhost key secret proj-123 1 http://networkapi.host tsuru secret client destination environment GET / 55 brincation_uite_me wat powerful cache 1500 business-area service-name 80:8080 N/A test_init N/A N/A self N/A N/A N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A self assertEqual N/A N/A manager cs_client api_url http://localhost N/A N/A N/A self assertEqual N/A N/A manager cs_client api_key key N/A N/A N/A self assertEqual N/A N/A manager cs_client secret secret N/A N/A N/A self assertEqual N/A manager create_project_id proj-123 N/A N/A N/A self assertEqual N/A manager networkapi_endpoint http://networkapi.host N/A N/A N/A self assertEqual N/A manager networkapi_user tsuru N/A N/A N/A self assertEqual N/A manager networkapi_password secret N/A N/A N/A self assertEqual N/A manager vip_network_index 1 N/A N/A N/A self assertEqual N/A N/A manager vip_config environment_p44 environment N/A N/A N/A self assertEqual N/A N/A manager vip_config client client N/A N/A N/A self assertEqual N/A N/A manager vip_config finality destination N/A N/A N/A self assertEqual N/A N/A manager vip_config healthcheck GET / N/A N/A N/A self assertEqual N/A N/A manager vip_config healthcheck_expect 55 N/A N/A N/A self assertEqual N/A N/A manager vip_config lb_method brincation_uite_me N/A N/A N/A self assertEqual N/A N/A manager vip_config cache powerful cache N/A N/A N/A self assertEqual N/A N/A manager vip_config maxconn 1500 N/A N/A N/A self assertEqual N/A N/A manager vip_config business_area business-area N/A N/A N/A self assertEqual N/A N/A manager vip_config service_name service-name N/A N/A N/A self assertEqual N/A N/A manager vip_config port_mapping N/A 80:8080 N/A test_init_multiple_ports N/A N/A self N/A N/A N/A N/A N/A N/A self conf update N/A VIP_PORT_MAPPING 80:8080,443:8081 N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A self assertEqual N/A N/A manager vip_config port_mapping N/A 80:8080 443:8081 N/A test_create_load_balancer N/A N/A self Vip Ip EnvironmentVIP logger N/A N/A N/A client_evip N/A N/A mock Mock N/A N/A N/A client_evip search return_value N/A environment_vip N/A id 500 N/A N/A EnvironmentVIP return_value client_evip N/A client_ip N/A N/A mock Mock N/A N/A N/A client_ip get_available_ip4_for_vip return_value N/A ip N/A id oct4 oct2 oct3 oct1 303 7 168 1 192 N/A N/A Ip return_value client_ip N/A client_vip N/A N/A mock Mock N/A N/A N/A client_vip add return_value N/A requisicao_vip N/A id 27 N/A N/A Vip return_value client_vip N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A manager create_load_balancer tsuru N/A N/A N/A self assertEqual 27 N/A lb id N/A N/A N/A self assertEqual 303 N/A lb ip_id N/A N/A N/A self assertEqual 192.168.1.7 N/A lb address N/A N/A N/A self assertEqual tsuru N/A lb name N/A N/A N/A self assertEqual proj-123 N/A lb project_id N/A N/A N/A EnvironmentVIP assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A Ip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A Vip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A N/A client_evip search assert_called_with ambiente_p44_txt N/A N/A self conf N/A NETWORKAPI_AMBIENTE_P44_TXT cliente_txt N/A N/A self conf N/A NETWORKAPI_CLIENTE_TXT finalidade_txt N/A N/A self conf N/A NETWORKAPI_FINALIDADE_TXT N/A N/A N/A N/A client_ip get_available_ip4_for_vip assert_called_with 500 tsuru hm tsuru N/A N/A N/A N/A client_vip add assert_called_with id_ipv4 303 id_ipv6 None id_healthcheck_expect N/A N/A self conf N/A VIP_HEALTHCHECK_EXPECT finality N/A N/A self conf N/A NETWORKAPI_FINALIDADE_TXT client N/A N/A self conf N/A NETWORKAPI_CLIENTE_TXT environment N/A N/A self conf N/A NETWORKAPI_AMBIENTE_P44_TXT cache N/A N/A self conf N/A VIP_CACHE method_bal N/A N/A self conf N/A VIP_METHOD_BAL persistence N/A N/A self conf N/A VIP_PERSISTENCE healthcheck_type HTTP timeout 5 healthcheck N/A N/A self conf N/A VIP_HEALTHCHECK host tsuru.hm.tsuru maxcon N/A N/A self conf N/A VIP_MAXCONN areanegocio N/A N/A self conf N/A VIP_BUSINESS_AREA nome_servico N/A N/A self conf N/A VIP_SERVICE_NAME reals N/A reals_prioritys N/A reals_weights N/A ports N/A 80:8080 l7_filter None N/A N/A N/A N/A client_vip validate assert_called_with 27 N/A N/A N/A N/A client_vip criar assert_called_with 27 N/A N/A N/A N/A logger debug assert_called_with VIP request 27 successfully created. N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.log N/A N/A mock patch networkapiclient.EnvironmentVIP.EnvironmentVIP N/A N/A mock patch networkapiclient.Ip.Ip N/A N/A mock patch networkapiclient.Vip.Vip test_create_vip_failure N/A N/A self Vip Ip EnvironmentVIP CloudStack N/A N/A N/A client_evip N/A N/A mock Mock N/A N/A N/A client_evip search return_value N/A environment_vip N/A id 500 N/A N/A EnvironmentVIP return_value client_evip N/A client_ip N/A N/A mock Mock N/A N/A N/A client_ip get_available_ip4_for_vip return_value N/A ip N/A id 303 N/A N/A Ip return_value client_ip N/A client_vip N/A N/A mock Mock N/A N/A N/A client_vip add side_effect N/A Exception Cannot create vip N/A N/A Vip return_value client_vip N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A self assertRaises Exception cm N/A N/A N/A N/A manager create_load_balancer tsuru N/A exc N/A cm exception N/A N/A N/A self assertEqual N/A Cannot create vip N/A exc args N/A N/A N/A N/A client_evip search assert_called_with ambiente_p44_txt N/A N/A self conf N/A NETWORKAPI_AMBIENTE_P44_TXT cliente_txt N/A N/A self conf N/A NETWORKAPI_CLIENTE_TXT finalidade_txt N/A N/A self conf N/A NETWORKAPI_FINALIDADE_TXT N/A N/A N/A N/A client_ip get_available_ip4_for_vip assert_called_with 500 tsuru hm tsuru N/A N/A N/A N/A client_ip delete_ip4 assert_called_with 303 N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A N/A mock patch networkapiclient.EnvironmentVIP.EnvironmentVIP N/A N/A mock patch networkapiclient.Ip.Ip N/A N/A mock patch networkapiclient.Vip.Vip test_create_vip_failure_on_validate N/A N/A self Vip Ip EnvironmentVIP CloudStack N/A N/A N/A client_evip N/A N/A mock Mock N/A N/A N/A client_evip search return_value N/A environment_vip N/A id 500 N/A N/A EnvironmentVIP return_value client_evip N/A client_ip N/A N/A mock Mock N/A N/A N/A client_ip get_available_ip4_for_vip return_value N/A ip N/A id 303 N/A N/A Ip return_value client_ip N/A client_vip N/A N/A mock Mock N/A N/A N/A client_vip add return_value N/A requisicao_vip N/A id 27 N/A N/A N/A client_vip validate side_effect N/A Exception Cannot validate vip N/A N/A Vip return_value client_vip N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A self assertRaises Exception cm N/A N/A N/A N/A manager create_load_balancer tsuru N/A exc N/A cm exception N/A N/A N/A self assertEqual N/A Cannot validate vip N/A exc args N/A N/A N/A N/A client_evip search assert_called_with ambiente_p44_txt N/A N/A self conf N/A NETWORKAPI_AMBIENTE_P44_TXT cliente_txt N/A N/A self conf N/A NETWORKAPI_CLIENTE_TXT finalidade_txt N/A N/A self conf N/A NETWORKAPI_FINALIDADE_TXT N/A N/A N/A N/A client_ip get_available_ip4_for_vip assert_called_with 500 tsuru hm tsuru N/A N/A N/A N/A client_ip delete_ip4 assert_called_with 303 N/A N/A N/A N/A client_vip remove_script assert_called_with 27 N/A N/A N/A N/A client_vip remover assert_called_with 27 N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A N/A mock patch networkapiclient.EnvironmentVIP.EnvironmentVIP N/A N/A mock patch networkapiclient.Ip.Ip N/A N/A mock patch networkapiclient.Vip.Vip test_create_vip_failure_on_remove N/A N/A self Vip Ip EnvironmentVIP CloudStack logger N/A N/A N/A client_evip N/A N/A mock Mock N/A N/A N/A client_evip search return_value N/A environment_vip N/A id 500 N/A N/A EnvironmentVIP return_value client_evip N/A client_ip N/A N/A mock Mock N/A N/A N/A client_ip get_available_ip4_for_vip return_value N/A ip N/A id 303 N/A N/A Ip return_value client_ip N/A client_vip N/A N/A mock Mock N/A N/A N/A client_vip add return_value N/A requisicao_vip N/A id 27 N/A N/A N/A client_vip validate side_effect N/A Exception Cannot validate vip N/A N/A N/A client_vip remover side_effect N/A Exception Cannot remove vip N/A N/A Vip return_value client_vip N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A self assertRaises Exception cm N/A N/A N/A N/A manager create_load_balancer tsuru N/A exc N/A cm exception N/A N/A N/A self assertEqual N/A Cannot validate vip N/A exc args N/A N/A N/A N/A client_evip search assert_called_with ambiente_p44_txt N/A N/A self conf N/A NETWORKAPI_AMBIENTE_P44_TXT cliente_txt N/A N/A self conf N/A NETWORKAPI_CLIENTE_TXT finalidade_txt N/A N/A self conf N/A NETWORKAPI_FINALIDADE_TXT N/A N/A N/A N/A client_ip get_available_ip4_for_vip assert_called_with 500 tsuru hm tsuru N/A N/A N/A N/A client_ip delete_ip4 assert_called_with 303 N/A N/A N/A N/A client_vip remove_script assert_called_with 27 N/A N/A N/A N/A client_vip remover assert_called_with 27 N/A N/A N/A N/A logger error assert_called_with Failed to remove the VIP 27: Cannot remove vip N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.log N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A N/A mock patch networkapiclient.EnvironmentVIP.EnvironmentVIP N/A N/A mock patch networkapiclient.Ip.Ip N/A N/A mock patch networkapiclient.Vip.Vip test_destroy_load_balancer N/A N/A self Ip Vip CloudStack N/A N/A N/A client_vip N/A N/A mock Mock N/A N/A Vip return_value client_vip N/A client_ip N/A N/A mock Mock N/A N/A Ip return_value client_ip N/A cloudstack_client N/A CloudStack return_value N/A lb N/A N/A load_balancer LoadBalancer 404 myapp 192.168.1.1 ip_id 303 project_id project_id-x N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A manager destroy_load_balancer lb N/A N/A N/A Vip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A N/A client_vip remove_script assert_called_with 404 N/A N/A N/A N/A client_vip remover assert_called_with 404 N/A N/A N/A Ip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A N/A client_ip delete_ip4 assert_called_with 303 N/A data N/A projectid vipid project_id-x 404 N/A N/A N/A N/A cloudstack_client removeGloboNetworkVip assert_called_with data N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A N/A mock patch networkapiclient.Vip.Vip N/A N/A mock patch networkapiclient.Ip.Ip test_remove_vip_ip_not_found N/A N/A self Ip Vip CloudStack N/A N/A N/A client_vip N/A N/A mock Mock N/A N/A Vip return_value client_vip N/A client_ip N/A N/A mock Mock N/A N/A N/A client_ip delete_ip4 side_effect N/A IpNaoExisteError 303 N/A N/A Ip return_value client_ip N/A lb N/A N/A load_balancer LoadBalancer 404 myapp 192.168.1.1 ip_id 303 project_id project_id-x N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A N/A N/A manager destroy_load_balancer lb N/A N/A N/A Vip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A N/A client_vip remove_script assert_called_with 404 N/A N/A N/A N/A client_vip remover assert_called_with 404 N/A N/A N/A Ip assert_called_with N/A N/A self conf N/A NETWORKAPI_ENDPOINT N/A N/A self conf N/A NETWORKAPI_USER N/A N/A self conf N/A NETWORKAPI_PASSWORD N/A N/A N/A N/A client_ip delete_ip4 assert_called_with 303 N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A N/A mock patch networkapiclient.Vip.Vip N/A N/A mock patch networkapiclient.Ip.Ip test_attach_real N/A N/A self CloudStack N/A N/A N/A N/A N/A N/A self conf update N/A CLOUDSTACK_VIP_NETWORK_INDEX 0 N/A vms N/A virtualmachine N/A N/A id nic abc123 N/A N/A id networkid def456 netid1 N/A N/A CloudStack return_value cloudstack_client N/A N/A mock Mock N/A N/A N/A cloudstack_client listVirtualMachines return_value vms N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A load_balancer LoadBalancer 500 myapp 192.168.1.1 ip_id 303 project_id None N/A h N/A N/A host Host abc123 name.host N/A N/A N/A manager attach_real lb h N/A list_data N/A id abc123 N/A N/A N/A N/A cloudstack_client listVirtualMachines assert_called_with list_data N/A net_data N/A networkid vipid netid1 500 N/A N/A N/A N/A cloudstack_client addGloboNetworkVipToAccount assert_called_with net_data N/A assoc_data N/A nicid vipid def456 500 N/A N/A N/A N/A cloudstack_client associateGloboNetworkRealToVip assert_called_with assoc_data N/A N/A N/A CloudStack assert_called_with N/A N/A self conf N/A CLOUDSTACK_API_URL N/A N/A self conf N/A CLOUDSTACK_API_KEY N/A N/A self conf N/A CLOUDSTACK_SECRET_KEY N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack test_attach_real_with_project_id N/A N/A self CloudStack N/A N/A N/A N/A N/A N/A self conf update N/A CLOUDSTACK_VIP_NETWORK_INDEX 0 N/A vms N/A virtualmachine N/A N/A id nic abc123 N/A N/A id networkid def456 netid1 N/A N/A CloudStack return_value cloudstack_client N/A N/A mock Mock N/A N/A N/A cloudstack_client listVirtualMachines return_value vms N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A load_balancer LoadBalancer 500 myapp 192.168.1.1 ip_id 303 project_id project_id-x N/A h N/A N/A host Host abc123 name.host N/A N/A N/A manager attach_real lb h N/A list_data N/A id projectid abc123 project_id-x N/A N/A N/A N/A cloudstack_client listVirtualMachines assert_called_with list_data N/A net_data N/A networkid vipid projectid netid1 500 project_id-x N/A N/A N/A N/A cloudstack_client addGloboNetworkVipToAccount assert_called_with net_data N/A assoc_data N/A nicid vipid projectid def456 500 project_id-x N/A N/A N/A N/A cloudstack_client associateGloboNetworkRealToVip assert_called_with assoc_data N/A N/A N/A CloudStack assert_called_with N/A N/A self conf N/A CLOUDSTACK_API_URL N/A N/A self conf N/A CLOUDSTACK_API_KEY N/A N/A self conf N/A CLOUDSTACK_SECRET_KEY N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack test_attach_real_with_network_index N/A N/A self CloudStack N/A N/A N/A vms N/A virtualmachine N/A N/A id nic abc123 N/A N/A id networkid def456 netid1 N/A id networkid second-id netid2 N/A N/A CloudStack return_value cloudstack_client N/A N/A mock Mock N/A N/A N/A cloudstack_client listVirtualMachines return_value vms N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A load_balancer LoadBalancer 500 myapp 192.168.1.1 ip_id 303 project_id None N/A h N/A N/A host Host abc123 name.host N/A N/A N/A manager attach_real lb h N/A list_data N/A id abc123 N/A N/A N/A N/A cloudstack_client listVirtualMachines assert_called_with list_data N/A net_data N/A networkid vipid netid2 500 N/A N/A N/A N/A cloudstack_client addGloboNetworkVipToAccount assert_called_with net_data N/A assoc_data N/A nicid vipid second-id 500 N/A N/A N/A N/A cloudstack_client associateGloboNetworkRealToVip assert_called_with assoc_data N/A N/A N/A CloudStack assert_called_with N/A N/A self conf N/A CLOUDSTACK_API_URL N/A N/A self conf N/A CLOUDSTACK_API_KEY N/A N/A self conf N/A CLOUDSTACK_SECRET_KEY N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack test_detach_real N/A N/A self CloudStack N/A N/A N/A N/A N/A N/A self conf update N/A CLOUDSTACK_VIP_NETWORK_INDEX 0 N/A vms N/A virtualmachine N/A N/A id nic abc123 N/A N/A id networkid def456 netid1 N/A N/A CloudStack return_value cloudstack_client N/A N/A mock Mock N/A N/A N/A cloudstack_client listVirtualMachines return_value vms N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A load_balancer LoadBalancer 500 myapp 192.168.1.1 ip_id 303 project_id None N/A h N/A N/A host Host abc123 name.host N/A N/A N/A manager detach_real lb h N/A list_data N/A id abc123 N/A N/A N/A N/A cloudstack_client listVirtualMachines assert_called_with list_data N/A assoc_data N/A nicid vipid def456 500 N/A N/A N/A N/A cloudstack_client disassociateGloboNetworkRealFromVip assert_called_with assoc_data N/A N/A N/A CloudStack assert_called_with N/A N/A self conf N/A CLOUDSTACK_API_URL N/A N/A self conf N/A CLOUDSTACK_API_KEY N/A N/A self conf N/A CLOUDSTACK_SECRET_KEY N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack test_detach_real_with_project_id N/A N/A self CloudStack N/A N/A N/A N/A N/A N/A self conf update N/A CLOUDSTACK_VIP_NETWORK_INDEX 0 N/A vms N/A virtualmachine N/A N/A id nic abc123 N/A N/A id networkid def456 netid1 N/A N/A CloudStack return_value cloudstack_client N/A N/A mock Mock N/A N/A N/A cloudstack_client listVirtualMachines return_value vms N/A manager N/A N/A networkapi_cloudstack NetworkApiCloudstackLB N/A self conf N/A lb N/A N/A load_balancer LoadBalancer 500 myapp 192.168.1.1 ip_id 303 project_id pid-xxx N/A h N/A N/A host Host abc123 name.host N/A N/A N/A manager detach_real lb h N/A list_data N/A id projectid abc123 pid-xxx N/A N/A N/A N/A cloudstack_client listVirtualMachines assert_called_with list_data N/A assoc_data N/A nicid vipid projectid def456 500 pid-xxx N/A N/A N/A N/A cloudstack_client disassociateGloboNetworkRealFromVip assert_called_with assoc_data N/A N/A N/A CloudStack assert_called_with N/A N/A self conf N/A CLOUDSTACK_API_URL N/A N/A self conf N/A CLOUDSTACK_API_KEY N/A N/A self conf N/A CLOUDSTACK_SECRET_KEY N/A N/A N/A mock patch hm.lb_managers.networkapi_cloudstack.CloudStack N/A