Пример #1
0
def handler(context, inputs):
    """
    Create IPAM object,
    define deaalocate_ip function
    and start deallocation function
    """
    ipam = IPAM(context, inputs)
    IPAM.do_deallocate_ip = do_deallocate_ip
    return ipam.deallocate_ip()
Пример #2
0
def handler(context, inputs):

    ipam = IPAM(context, inputs)
    IPAM.do_deallocate_ip = do_deallocate_ip

    return ipam.deallocate_ip()