Module Expr Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body 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 decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore 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 keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad 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 defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Num keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str decorator_list
N/A N/A 
test_floating_ip_common
----------------------------------

Tests floating IP resource methods for Neutron and Nova-network.
 mock patch N/A os_client_config shade meta shade OpenStackCloud shade.tests.fakes FakeServer shade.tests.unit base TestFloatingIP N/A N/A base TestCase 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 test_add_auto_ip N/A N/A self mock_available_floating_ip mock_attach_ip_to_server mock_get_floating_ip N/A N/A N/A server N/A FakeServer id server-id name test-server status ACTIVE addresses N/A N/A server_dict N/A N/A meta obj_to_dict server N/A floating_ip_dict 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 N/A mock_available_floating_ip return_value floating_ip_dict N/A N/A N/A N/A self client add_auto_ip server server_dict N/A N/A N/A mock_attach_ip_to_server assert_called_with timeout 60 wait False server server_dict floating_ip floating_ip_dict skip_attach False N/A N/A N/A patch object OpenStackCloud get_floating_ip N/A N/A patch object OpenStackCloud _attach_ip_to_server N/A N/A patch object OpenStackCloud available_floating_ip test_add_ips_to_server_pool N/A N/A self mock_add_ip_from_pool mock_nova_client N/A N/A N/A server N/A FakeServer id romeo name test-server status ACTIVE addresses N/A N/A server_dict N/A N/A meta obj_to_dict server N/A pool nova N/A N/A N/A N/A mock_nova_client servers get return_value server N/A N/A N/A N/A self client add_ips_to_server server_dict ip_pool pool N/A N/A N/A mock_add_ip_from_pool assert_called_with server_dict pool reuse True wait False timeout 60 fixed_address None nat_destination None N/A N/A N/A patch object OpenStackCloud nova_client N/A N/A patch object OpenStackCloud _add_ip_from_pool test_add_ips_to_server_ip_list N/A N/A self mock_add_ip_list mock_nova_client N/A N/A N/A server N/A FakeServer id server-id name test-server status ACTIVE addresses N/A N/A server_dict N/A N/A meta obj_to_dict server N/A ips N/A 203.0.113.29 172.24.4.229 N/A N/A N/A N/A mock_nova_client servers get return_value server N/A N/A N/A N/A self client add_ips_to_server server_dict ips ips N/A N/A N/A mock_add_ip_list assert_called_with server_dict ips wait False timeout 60 fixed_address None N/A N/A N/A patch object OpenStackCloud nova_client N/A N/A patch object OpenStackCloud add_ip_list test_add_ips_to_server_auto_ip N/A N/A self mock_add_auto_ip mock_nova_client N/A N/A N/A server N/A FakeServer id server-id name test-server status ACTIVE addresses N/A N/A server_dict N/A N/A meta obj_to_dict server N/A N/A N/A N/A mock_nova_client servers get return_value server N/A N/A N/A N/A self client add_ips_to_server server_dict N/A N/A N/A mock_add_auto_ip assert_called_with server_dict wait False timeout 60 reuse True N/A N/A N/A patch object OpenStackCloud nova_client N/A N/A patch object OpenStackCloud _add_auto_ip N/A