@route(app, '/lumeta/getnetworklist', methods=['GET', 'PUT', 'POST'])
@util.rest_workflow_permission_required('lumeta_workflow_page')
@util.rest_exception_catcher
def get_networks_get_networks_page():
    g.user.logger.info('SUCCESS')
    configurations = None
    configurations_json = []
    if g.user:
        configurations = g.user.get_api().get_configurations()
        for c in configurations:
            print(c)
            configuration_json = {'id': c.get_id(), 'name': c.get_name()}
            configurations_json.append(configuration_json)
        return jsonify(configurations_json)
@route(app, '/lumeta/getnetworklist', methods=['GET', 'PUT', 'POST'])
@util.rest_workflow_permission_required('lumeta_workflow_page')
@util.rest_exception_catcher
def get_networks_get_networks_page():
    g.user.logger.info('SUCCESS')
    configurations = None
    configurations_json = []
    if g.user:
        configurations = g.user.get_api().get_configurations()
        for c in configurations:
            print(c)
            configuration_json = {'id': c.get_id(), 'name': c.get_name()}
            configurations_json.append(configuration_json)
        return jsonify(configurations_json)