':param floating_ip: floating_ips_client.create_floatingip'

def _disassociate_floating_ip(self, floating_ip):

    kwargs = dict(port_id=None)
    floating_ip = self.floating_ips_client.update_floatingip(floating_ip['id'], **kwargs)['floatingip']
    self.assertIsNone(floating_ip['port_id'])
    return floating_ip
