'Gets new allocation pools and formats them correctly'

def _update_allocation_pools(self, subnet):

    allocation_pools = self.ipam.generate_pools(subnet['cidr'], subnet['gateway_ip'])
    return [{'start': str(netaddr.IPAddress(p.first, subnet['ip_version'])), 'end': str(netaddr.IPAddress(p.last, subnet['ip_version']))} for p in allocation_pools]
