def METHOD_NAME(network, family=AF_INET):
    global network_pool
    global allocations
    if network in allocations:
        allocations.pop(network)
        network_pool[family].append(network)
    else:
        cx = httplib.HTTPConnection('localhost:7623')
        cx.request(
            'DELETE', '/v1/network/%s/' % family_url[family], body=str(network)
        )
        cx.getresponse()
        cx.close()