Exemplo n.º 1
0
def update_monitor_in_conf(monitor_id, monitor_updates):

    success, errors, current_monitor = get_monitor_from_conf(monitor_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("monitor", monitor_id, current_monitor, monitor_updates)

    return success, errors, obj_id
Exemplo n.º 2
0
def update_listener_in_conf(listener_id, listener_updates):

    success, errors, current_listener = get_listener_from_conf(listener_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("listener", listener_id, current_listener, listener_updates)

    return success, errors, obj_id
Exemplo n.º 3
0
def update_server_in_conf(server_id, server_updates):

    success, errors, current_server = get_server_from_conf(server_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("server", server_id, current_server, server_updates)

    return success, errors, obj_id
Exemplo n.º 4
0
def update_monitor_in_conf(monitor_id, monitor_updates):

    success, errors, current_monitor = get_monitor_from_conf(monitor_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("monitor", monitor_id,
                                                   current_monitor,
                                                   monitor_updates)

    return success, errors, obj_id
Exemplo n.º 5
0
def update_server_in_conf(server_id, server_updates):

    success, errors, current_server = get_server_from_conf(server_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("server", server_id,
                                                   current_server,
                                                   server_updates)

    return success, errors, obj_id
Exemplo n.º 6
0
def update_listener_in_conf(listener_id, listener_updates):

    success, errors, current_listener = get_listener_from_conf(listener_id)

    if not success:
        return False, errors, None

    success, errors, obj_id = update_object_config("listener", listener_id,
                                                   current_listener,
                                                   listener_updates)

    return success, errors, obj_id