

@atomic.optional_action_timer('nova.associate_floating_ip')
def _associate_floating_ip(self, server, address, fixed_address=None):
    'Add floating IP to an instance\n\n        :param server: The :class:`Server` to add an IP to.\n        :param address: The ip address or FloatingIP to add to the instance\n        :param fixed_address: The fixedIP address the FloatingIP is to be\n               associated with (optional)\n        :param atomic_action: True if this is an atomic action. added\n                              and handled by the\n                              optional_action_timer() decorator\n        '
    server.add_floating_ip(address, fixed_address=fixed_address)
    utils.wait_for(server, is_ready=self.check_ip_address(address), update_resource=utils.get_from_manager())
    server.addresses = server.manager.get(server.id).addresses

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/utils.py NovaScenario._associate_floating_ip/original