예제 #1
0
def handler(context, inputs):
    """
    Create IPAM object and start allocation function
    """
    ipam = IPAM(context, inputs)
    IPAM.do_get_ip_ranges = do_get_ip_ranges
    return ipam.get_ip_ranges()
예제 #2
0
def handler(context, inputs):
    """
    Create IPAM object and start allocation function
    """
    ipam = IPAM(context, inputs)
    IPAM.do_allocate_ip = do_allocate_ip
    return ipam.allocate_ip()
예제 #3
0
def handler(context, inputs):
    """
    Create IPAM object and start allocation function
    """
    #    try:
    ipam = IPAM(context, inputs)
    IPAM.do_validate_endpoint = do_validate_endpoint
    return ipam.validate_endpoint()
예제 #4
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()
예제 #5
0
def handler(context, inputs):

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

    return ipam.validate_endpoint()
예제 #6
0
def handler(context, inputs):

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

    return ipam.allocate_ip_range()
예제 #7
0
def handler(context, inputs):

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

    return ipam.update_record()
예제 #8
0
def handler(context, inputs):

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

    return ipam.get_ip_blocks()
예제 #9
0
def handler(context, inputs):

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

    return ipam.allocate_ip()
예제 #10
0
def handler(context, inputs):

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

    return ipam.get_ip_ranges()