'Creates floating IPs for zone by range.'

@args('--ip_range', metavar='<range>', help='IP    range')
@args('--pool', metavar='<pool>', help='Optional    pool')
@args('--interface', metavar='<interface>', help='Optional    interface')
def create(self, ip_range, pool=None, interface=None):

    admin_context = context.get_admin_context()
    if (not pool):
        pool = CONF.default_floating_pool
    if (not interface):
        interface = CONF.public_interface
    ips = [{'address': str(address), 'pool': pool, 'interface': interface} for address in self.address_to_hosts(ip_range)]
    try:
        db.floating_ip_bulk_create(admin_context, ips, want_result=False)
    except exception.FloatingIpExists as exc:
        print(('error:    %s' % exc))
        return 1
