Revision 868e4ce0 snf-cyclades-app/synnefo/api/subnets.py

b/snf-cyclades-app/synnefo/api/subnets.py
148 148

  
149 149
    allocation_pools = subnet.get('allocation_pools', None)
150 150

  
151
    # FIX ME
152 151
    sub = Subnet.objects.create(name=name, network=network, cidr=cidr,
153 152
                                ipversion=ipversion, gateway=gateway,
154 153
                                dhcp=dhcp, host_routes=hosts,
......
263 262
            cidr = IPNetwork(pool.base)
264 263
            start = str(cidr.network + pool.offset)
265 264
            end = str(cidr.network + pool.offset + pool.size - 1)
266
            pools.append([{"start": start, "end": end}])
265
            pools.append({"start": start, "end": end})
267 266

  
268 267
    dictionary = dict({'id': str(subnet.id),
269 268
                       'network_id': str(subnet.network.id),

Also available in: Unified diff