'Disassociates an Elastic IP address using the IP (EC2-Classic)
or the association ID (VPC).
:param      elastic_ip: ElasticIP instance
:type       elastic_ip: :class:`ElasticIP`
:param      domain: The domain where the IP resides (vpc only)
:type       domain: ``str``
:return:    True on success, False otherwise.
:rtype:     ``bool``'

def ex_disassociate_address(self, elastic_ip, domain=None):

    params = {'Action': 'DisassociateAddress'}
    if ((domain is not None) and (domain != 'vpc')):
        raise AttributeError('Domain    can    only    be    set    to    vpc')
    if (domain is None):
        params['PublicIp'] = elastic_ip.ip
    else:
        params['AssociationId'] = elastic_ip.extra['association_id']
    res = self.connection.request(self.path, params=params).object
    return self._get_boolean(res)
