Module Expr Str Import alias ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str NameLoad Str Str NameLoad Str NameLoad Str Str Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str NameLoad NameLoad Str Str NameLoad NameLoad Str NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad NameLoad Str Str ListLoad Dict Str Str NameLoad NameLoad Str Str Str Dict Str ListLoad Dict Str Str Str Str Str ListLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str keyword Dict Str ListLoad Dict Str Str Str Str Str Str Num Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad keyword NameLoad keyword Dict Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad keyword NameLoad keyword Dict Str Str Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str SubscriptLoad NameLoad Index Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Str keyword Dict Str Dict Str Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Index Num Index Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Dict Str Dict Str NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str NameLoad NameLoad Str Str NameLoad Str Dict Str Str Str Str Str Str Str Str NameLoad NameLoad Str Str NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Num keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad keyword Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str decorator_list
N/A N/A 
test_floating_ip_neutron
----------------------------------

Tests Floating IP resource methods for Neutron
 N/A mock mock patch N/A os_client_config neutronclient.common exceptions n_exc shade _utils shade exc shade meta shade OpenStackCloud shade.tests fakes shade.tests.unit base TestFloatingIP N/A N/A base TestCase N/A N/A mock_floating_ip_list_rep N/A floatingips N/A N/A router_id tenant_id floating_network_id fixed_ip_address floating_ip_address port_id id status d23abc8d-2991-4a55-ba98-2aaea84cc72f 4969c491a3c74ee4af974e6d800c62de 376da547-b977-4cfe-9cba-275c80debf57 192.0.2.29 203.0.113.29 ce705c24-c1ef-408a-bda3-7bbd946164ab 2f245a7b-796b-4f26-9cf9-9e82d248fda7 ACTIVE N/A router_id tenant_id floating_network_id fixed_ip_address floating_ip_address port_id id status None 4969c491a3c74ee4af974e6d800c62de 376da547-b977-4cfe-9cba-275c80debf57 None 203.0.113.30 None 61cea855-49cb-4846-997d-801b70c71bdd DOWN N/A mock_floating_ip_new_rep N/A floatingip N/A fixed_ip_address floating_ip_address floating_network_id id port_id router_id status tenant_id 10.0.0.4 172.24.4.229 my-network-id 2f245a7b-796b-4f26-9cf9-9e82d248fda8 None None ACTIVE 4969c491a3c74ee4af974e6d800c62df N/A mock_get_network_rep N/A status subnets name provider:physical_network admin_state_up tenant_id provider:network_type router:external shared id provider:segmentation_id ACTIVE N/A 54d6f61d-db07-451c-9ab3-b9609b6b6f0b my-network None True 4fd44f30292945e481c7b8a0c8908869 local True True my-network-id None N/A mock_search_ports_rep N/A N/A status binding:host_id name allowed_address_pairs admin_state_up network_id tenant_id extra_dhcp_opts binding:vif_details binding:vif_type device_owner mac_address binding:profile binding:vnic_type fixed_ips id security_groups device_id ACTIVE devstack first-port N/A True 70c1db1f-b701-45bd-96e0-a313ee3430b3 N/A N/A port_filter ovs_hybrid_plug True True ovs compute:None fa:16:3e:58:42:ed N/A normal N/A N/A subnet_id ip_address 008ba151-0b8c-4a67-98b5-0d2b87666062 172.24.4.2 ce705c24-c1ef-408a-bda3-7bbd946164ac N/A server_id assertAreInstances N/A N/A self elements elem_type N/A N/A N/A e elements N/A N/A N/A N/A self assertIsInstance e elem_type N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestFloatingIP self setUp N/A config N/A N/A os_client_config OpenStackConfig N/A N/A self client N/A OpenStackCloud cloud_config N/A N/A config get_one_cloud validate False N/A N/A self fake_server N/A N/A meta obj_to_dict N/A N/A fakes FakeServer server-id ACTIVE addresses N/A test_pnztt_net N/A N/A OS-EXT-IPS:type addr version OS-EXT-IPS-MAC:mac_addr fixed 192.0.2.129 4 fa:16:3e:ae:7d:42 N/A N/A self floating_ip N/A N/A N/A _utils normalize_neutron_floating_ips N/A N/A self mock_floating_ip_list_rep N/A floatingips N/A 0 N/A test_list_floating_ips N/A N/A self mock_has_service mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A N/A mock_neutron_client list_floatingips return_value N/A self mock_floating_ip_list_rep N/A floating_ips N/A N/A N/A self client list_floating_ips N/A N/A N/A N/A mock_neutron_client list_floatingips assert_called_with N/A N/A N/A self assertIsInstance floating_ips list N/A N/A N/A self assertAreInstances floating_ips dict N/A N/A N/A self assertEqual 2 N/A len floating_ips N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_search_floating_ips N/A N/A self mock_has_service mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A N/A mock_neutron_client list_floatingips return_value N/A self mock_floating_ip_list_rep N/A floating_ips N/A N/A N/A self client search_floating_ips filters N/A attached False N/A N/A N/A N/A mock_neutron_client list_floatingips assert_called_with N/A N/A N/A self assertIsInstance floating_ips list N/A N/A N/A self assertAreInstances floating_ips dict N/A N/A N/A self assertEqual 1 N/A len floating_ips N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_get_floating_ip N/A N/A self mock_has_service mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A N/A mock_neutron_client list_floatingips return_value N/A self mock_floating_ip_list_rep N/A floating_ip N/A N/A N/A self client get_floating_ip id 2f245a7b-796b-4f26-9cf9-9e82d248fda7 N/A N/A N/A N/A mock_neutron_client list_floatingips assert_called_with N/A N/A N/A self assertIsInstance floating_ip dict N/A N/A N/A self assertEqual 203.0.113.29 N/A floating_ip N/A floating_ip_address N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_get_floating_ip_not_found N/A N/A self mock_has_service mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A N/A mock_neutron_client list_floatingips return_value N/A self mock_floating_ip_list_rep N/A floating_ip N/A N/A N/A self client get_floating_ip id non-existent N/A N/A N/A self assertIsNone floating_ip N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_create_floating_ip N/A N/A self mock_has_service mock_search_networks mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_search_networks return_value N/A N/A self mock_get_network_rep N/A N/A N/A mock_neutron_client create_floatingip return_value N/A self mock_floating_ip_new_rep N/A ip N/A N/A N/A self client create_floating_ip network my-network N/A N/A N/A N/A mock_neutron_client create_floatingip assert_called_with body N/A floatingip N/A floating_network_id my-network-id N/A N/A N/A self assertEqual N/A N/A N/A self mock_floating_ip_new_rep N/A floatingip N/A floating_ip_address N/A ip N/A floating_ip_address N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud search_networks N/A N/A patch object OpenStackCloud has_service test_available_floating_ip_neutron N/A N/A self mock_keystone mock_has_service mock__neutron_call mock_normalize N/A N/A N/A 
        Test the correct path is taken when using neutron.
         N/A N/A mock_has_service return_value True N/A N/A mock__neutron_call return_value N/A N/A N/A N/A N/A self client available_floating_ip network netname N/A N/A N/A mock_has_service assert_called_once_with network N/A N/A N/A mock__neutron_call assert_called_once_with network netname server None N/A N/A N/A mock_normalize assert_called_once_with N/A N/A N/A N/A patch object _utils normalize_neutron_floating_ips N/A N/A patch object OpenStackCloud _neutron_available_floating_ips N/A N/A patch object OpenStackCloud has_service N/A N/A patch object OpenStackCloud keystone_session test__neutron_available_floating_ips N/A N/A self mock_keystone_session mock_get_ext_nets mock__neutron_list_fips mock__neutron_create_fip mock__filter_list N/A N/A N/A 
        Test without specifying a network name.
         N/A N/A N/A mock_keystone_session get_project_id return_value proj-id N/A N/A mock_get_ext_nets return_value N/A N/A self mock_get_network_rep N/A N/A mock__neutron_list_fips return_value N/A N/A N/A mock__filter_list return_value N/A N/A N/A N/A N/A self client _neutron_available_floating_ips N/A N/A N/A N/A mock_keystone_session get_project_id assert_called_once_with N/A N/A N/A mock_get_ext_nets assert_called_once_with N/A N/A N/A mock__neutron_list_fips assert_called_once_with N/A N/A N/A mock__filter_list assert_called_once_with N/A name_or_id None filters N/A port_id floating_network_id tenant_id None N/A N/A self mock_get_network_rep N/A id proj-id N/A N/A N/A mock__neutron_create_fip assert_called_once_with network_name_or_id N/A N/A self mock_get_network_rep N/A id server None N/A N/A N/A patch object _utils _filter_list N/A N/A patch object OpenStackCloud _neutron_create_floating_ip N/A N/A patch object OpenStackCloud _neutron_list_floating_ips N/A N/A patch object OpenStackCloud get_external_networks N/A N/A patch object OpenStackCloud keystone_session test__neutron_available_floating_ips_network N/A N/A self mock_keystone_session mock_get_ext_nets mock__neutron_list_fips mock__neutron_create_fip mock__filter_list N/A N/A N/A 
        Test with specifying a network name.
         N/A N/A N/A mock_keystone_session get_project_id return_value proj-id N/A N/A mock_get_ext_nets return_value N/A N/A self mock_get_network_rep N/A N/A mock__neutron_list_fips return_value N/A N/A N/A mock__filter_list return_value N/A N/A N/A N/A N/A self client _neutron_available_floating_ips network N/A N/A self mock_get_network_rep N/A name N/A N/A N/A N/A mock_keystone_session get_project_id assert_called_once_with N/A N/A N/A mock_get_ext_nets assert_called_once_with N/A N/A N/A mock__neutron_list_fips assert_called_once_with N/A N/A N/A mock__filter_list assert_called_once_with N/A name_or_id None filters N/A port_id floating_network_id tenant_id None N/A N/A self mock_get_network_rep N/A id proj-id N/A N/A N/A mock__neutron_create_fip assert_called_once_with network_name_or_id N/A N/A self mock_get_network_rep N/A id server None N/A N/A N/A patch object _utils _filter_list N/A N/A patch object OpenStackCloud _neutron_create_floating_ip N/A N/A patch object OpenStackCloud _neutron_list_floating_ips N/A N/A patch object OpenStackCloud get_external_networks N/A N/A patch object OpenStackCloud keystone_session test__neutron_available_floating_ips_invalid_network N/A N/A self mock_keystone_session mock_get_ext_nets N/A N/A N/A 
        Test with an invalid network name.
         N/A N/A N/A mock_keystone_session get_project_id return_value proj-id N/A N/A mock_get_ext_nets return_value N/A N/A N/A N/A self assertRaises N/A exc OpenStackCloudException N/A N/A self client _neutron_available_floating_ips network INVALID N/A N/A N/A patch object OpenStackCloud get_external_networks N/A N/A patch object OpenStackCloud keystone_session test_auto_ip_pool_no_reuse N/A N/A self mock_has_service mock_attach_ip_to_server mock__neutron_create_floating_ip mock_keystone_session mock_nova_client N/A N/A N/A N/A mock_has_service return_value True N/A fip N/A N/A N/A _utils normalize_neutron_floating_ips N/A N/A self mock_floating_ip_list_rep N/A floatingips N/A 0 N/A N/A mock__neutron_create_floating_ip return_value fip N/A N/A N/A mock_keystone_session get_project_id return_value 4969c491a3c74ee4af974e6d800c62df N/A fake_server N/A N/A meta obj_to_dict N/A N/A fakes FakeServer 1234 ACTIVE N/A N/A N/A N/A self client add_ips_to_server fake_server ip_pool my-network reuse False N/A N/A N/A mock__neutron_create_floating_ip assert_called_once_with network_name_or_id my-network server None fixed_address None nat_destination None wait False timeout 60 N/A N/A N/A mock_attach_ip_to_server assert_called_once_with server fake_server fixed_address None floating_ip fip wait False timeout N/A mock ANY N/A N/A N/A patch object OpenStackCloud nova_client N/A N/A patch object OpenStackCloud keystone_session N/A N/A patch object OpenStackCloud _neutron_create_floating_ip N/A N/A patch object OpenStackCloud _attach_ip_to_server N/A N/A patch object OpenStackCloud has_service test_available_floating_ip_new N/A N/A self mock_has_service mock_list_networks mock__neutron_list_floating_ips mock__neutron_create_floating_ip mock_keystone_session N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_list_networks return_value N/A N/A self mock_get_network_rep N/A N/A mock__neutron_list_floating_ips return_value N/A N/A N/A mock__neutron_create_floating_ip return_value N/A N/A self mock_floating_ip_new_rep N/A floatingip N/A N/A N/A mock_keystone_session get_project_id return_value 4969c491a3c74ee4af974e6d800c62df N/A ip N/A N/A N/A self client available_floating_ip network my-network N/A N/A N/A self assertEqual N/A N/A N/A self mock_floating_ip_new_rep N/A floatingip N/A floating_ip_address N/A ip N/A floating_ip_address N/A N/A N/A patch object OpenStackCloud keystone_session N/A N/A patch object OpenStackCloud _neutron_create_floating_ip N/A N/A patch object OpenStackCloud _neutron_list_floating_ips N/A N/A patch object OpenStackCloud list_networks N/A N/A patch object OpenStackCloud has_service test_delete_floating_ip_existing N/A N/A self mock_has_service mock_neutron_client mock_get_floating_ip N/A N/A N/A N/A mock_has_service return_value True N/A fake_fip N/A id floating_ip_address 2f245a7b-796b-4f26-9cf9-9e82d248fda7 172.99.106.167 N/A N/A mock_get_floating_ip side_effect N/A fake_fip fake_fip None N/A N/A N/A mock_neutron_client delete_floatingip return_value None N/A ret N/A N/A N/A self client delete_floating_ip floating_ip_id 2f245a7b-796b-4f26-9cf9-9e82d248fda7 retry 2 N/A N/A N/A N/A mock_neutron_client delete_floatingip assert_called_with floatingip 2f245a7b-796b-4f26-9cf9-9e82d248fda7 N/A N/A N/A self assertEqual N/A mock_get_floating_ip call_count 3 N/A N/A N/A self assertTrue ret N/A N/A N/A patch object OpenStackCloud get_floating_ip N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_delete_floating_ip_existing_no_delete N/A N/A self mock_has_service mock_neutron_client mock_get_floating_ip N/A N/A N/A N/A mock_has_service return_value True N/A fake_fip N/A id floating_ip_address 2f245a7b-796b-4f26-9cf9-9e82d248fda7 172.99.106.167 N/A N/A mock_get_floating_ip side_effect N/A fake_fip fake_fip fake_fip N/A N/A N/A mock_neutron_client delete_floatingip return_value None N/A N/A N/A self assertRaises N/A exc OpenStackCloudException N/A N/A self client delete_floating_ip floating_ip_id 2f245a7b-796b-4f26-9cf9-9e82d248fda7 retry 2 N/A N/A N/A N/A mock_neutron_client delete_floatingip assert_called_with floatingip 2f245a7b-796b-4f26-9cf9-9e82d248fda7 N/A N/A N/A self assertEqual N/A mock_get_floating_ip call_count 3 N/A N/A N/A patch object OpenStackCloud get_floating_ip N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_delete_floating_ip_not_found N/A N/A self mock_has_service mock_neutron_client N/A N/A N/A N/A mock_has_service return_value True N/A N/A N/A mock_neutron_client delete_floatingip side_effect N/A N/A n_exc NotFound N/A ret N/A N/A N/A self client delete_floating_ip floating_ip_id a-wild-id-appears N/A N/A N/A self assertFalse ret N/A N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_attach_ip_to_server N/A N/A self mock_has_service mock_neutron_client mock_search_ports N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_search_ports return_value N/A self mock_search_ports_rep N/A N/A N/A mock_neutron_client list_floatingips return_value N/A self mock_floating_ip_list_rep N/A N/A N/A N/A self client _attach_ip_to_server server N/A self fake_server floating_ip N/A self floating_ip N/A N/A N/A N/A mock_neutron_client update_floatingip assert_called_with floatingip N/A N/A N/A N/A self mock_floating_ip_list_rep N/A floatingips N/A 0 N/A id body N/A floatingip N/A port_id fixed_ip_address N/A N/A N/A self mock_search_ports_rep N/A 0 N/A id N/A N/A N/A N/A N/A self mock_search_ports_rep N/A 0 N/A fixed_ips N/A 0 N/A ip_address N/A N/A N/A patch object OpenStackCloud search_ports N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_add_ip_refresh_timeout N/A N/A self mock_has_service mock_create_floating_ip mock_get_server_by_id mock_delete_floating_ip N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_create_floating_ip return_value N/A self floating_ip N/A N/A mock_get_server_by_id return_value N/A self fake_server N/A N/A N/A self assertRaises N/A exc OpenStackCloudTimeout N/A N/A self client _add_auto_ip server N/A self fake_server wait True timeout 2 reuse False N/A N/A N/A mock_delete_floating_ip assert_called_once_with N/A N/A self floating_ip N/A id N/A N/A N/A patch object OpenStackCloud delete_floating_ip N/A N/A patch object OpenStackCloud get_server_by_id N/A N/A patch object OpenStackCloud create_floating_ip N/A N/A patch object OpenStackCloud has_service test_detach_ip_from_server N/A N/A self mock_has_service mock_neutron_client mock_get_floating_ip N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_get_floating_ip return_value N/A N/A N/A _utils normalize_neutron_floating_ips N/A N/A self mock_floating_ip_list_rep N/A floatingips N/A 0 N/A N/A N/A N/A self client detach_ip_from_server server_id server-id floating_ip_id 2f245a7b-796b-4f26-9cf9-9e82d248fda7 N/A N/A N/A N/A mock_neutron_client update_floatingip assert_called_with floatingip 2f245a7b-796b-4f26-9cf9-9e82d248fda7 body N/A floatingip N/A port_id None N/A N/A N/A patch object OpenStackCloud get_floating_ip N/A N/A patch object OpenStackCloud neutron_client N/A N/A patch object OpenStackCloud has_service test_add_ip_from_pool N/A N/A self mock_has_service mock_available_floating_ip mock_attach_ip_to_server N/A N/A N/A N/A mock_has_service return_value True N/A N/A mock_available_floating_ip return_value N/A N/A N/A _utils normalize_neutron_floating_ips N/A N/A N/A self mock_floating_ip_new_rep N/A floatingip N/A 0 N/A N/A mock_attach_ip_to_server return_value N/A self fake_server N/A server N/A N/A N/A self client _add_ip_from_pool server N/A self fake_server network network-name fixed_address 192.0.2.129 N/A N/A N/A self assertEqual server N/A self fake_server N/A N/A N/A patch object OpenStackCloud _attach_ip_to_server N/A N/A patch object OpenStackCloud available_floating_ip N/A N/A patch object OpenStackCloud has_service test_cleanup_floating_ips N/A N/A self mock_use_neutron_floating mock_list_floating_ips mock_delete_floating_ip N/A N/A N/A N/A mock_use_neutron_floating return_value True N/A floating_ips N/A N/A id fixed_ip_address internal_network floating_ip_address network attached status this-is-a-floating-ip-id None None 203.0.113.29 this-is-a-net-or-pool-id False ACTIVE N/A id fixed_ip_address internal_network floating_ip_address network attached status this-is-an-attached-floating-ip-id None None 203.0.113.29 this-is-a-net-or-pool-id True ACTIVE N/A N/A mock_list_floating_ips return_value floating_ips N/A N/A N/A N/A self client delete_unattached_floating_ips N/A N/A N/A mock_delete_floating_ip assert_called_once_with id this-is-a-floating-ip-id timeout 60 wait False N/A N/A N/A patch object OpenStackCloud delete_floating_ip N/A N/A patch object OpenStackCloud list_floating_ips N/A N/A patch object OpenStackCloud _use_neutron_floating test_create_floating_ip_no_port N/A N/A self mock_get_ext_nets mock_get_free_fixed_port mock_submit_create_fip N/A N/A N/A fake_port N/A dict id port-id N/A N/A mock_get_ext_nets return_value N/A N/A self mock_get_network_rep N/A N/A mock_get_free_fixed_port return_value N/A fake_port 10.0.0.2 N/A N/A mock_submit_create_fip return_value N/A dict port_id None N/A N/A N/A self assertRaises N/A exc OpenStackCloudException N/A N/A self client _neutron_create_floating_ip server N/A dict id some-server N/A N/A N/A patch object OpenStackCloud _submit_create_fip N/A N/A patch object OpenStackCloud _get_free_fixed_port N/A N/A patch object OpenStackCloud get_external_networks N/A