'Update operational status for floating IP in neutron DB.'

@db_api.retry_if_session_inactive()
def update_floatingip_status(self, context, floatingip_id, status):

    fip_query = model_query.query_with_hooks(context, l3_models.FloatingIP).filter((l3_models.FloatingIP.id == floatingip_id))
    fip_query.update({'status': status}, synchronize_session=False)
