def METHOD_NAME(family=AF_INET):
    global dtcd_uuid
    global network_pool
    global allocations
    network = None
    try:
        cx = httplib.HTTPConnection('localhost:7623')
        cx.request(
            'POST', '/v1/network/%s/' % family_url[family], body=dtcd_uuid
        )
        resp = cx.getresponse()
        if resp.status == 200:
            network = netaddr.IPNetwork(resp.read().decode('utf-8'))
        cx.close()
    except Exception:
        pass
    if network is None:
        network = network_pool[family].pop()
        allocations[network] = True
    return network