• Christos Stavrakakis's avatar
    cyclades: Refactor code for allocating IPs · 1fcb59b8
    Christos Stavrakakis authored
    Refactor code that was used for allocating IP addresses and creating
    NetworkInterfaces. The new code is more suitable to the new DB schema
    where each network may have many IPv4 subnets and each subnet may
    have many IP pools. Also, the new functions are using prefetch related
    to minimize the needed DB queries.
util.py 17.8 KB