'Create new floating IP. The ip_pool attribute is optional only if your
infrastructure has only one IP pool available.
:param      ip_pool: name of the floating IP pool
:type       ip_pool: ``str``
:rtype: :class:`OpenStack_1_1_FloatingIpAddress`'

def ex_create_floating_ip(self, ip_pool=None):

    data = ({'pool': ip_pool} if (ip_pool is not None) else {})
    resp = self.connection.request('/os-floating-ips', method='POST', data=data)
    data = resp.object['floating_ip']
    id = data['id']
    ip_address = data['ip']
    return OpenStack_1_1_FloatingIpAddress(id=id, ip_address=ip_address, pool=None, node_id=None, driver=self)
