Add ProxyDatastore
This class will be used to intercept certain commands from the cli, like
entering RPC input. Right now, it works just as a pass-through.
Change-Id: I2d252609c1354005a0ccf4a1f26399dc895a73e8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4fd1b0d..4081ce1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,10 +133,15 @@
)
target_link_libraries(parser schemas utils ast_values)
+add_library(proxydatastore STATIC
+ src/proxy_datastore.cpp
+ )
+target_link_libraries(proxydatastore PUBLIC datastoreaccess)
+
# Links libraries, that aren't specific to a datastore type
function(cli_link_required cli_target)
target_include_directories(${cli_target} PRIVATE ${REPLXX_PATH})
- target_link_libraries(${cli_target} yangschema docopt parser ${REPLXX_LIBRARY})
+ target_link_libraries(${cli_target} proxydatastore yangschema docopt parser ${REPLXX_LIBRARY})
add_dependencies(${cli_target} target-NETCONF_CLI_VERSION)
target_include_directories(${cli_target} PRIVATE ${PROJECT_BINARY_DIR})
endfunction()
@@ -302,6 +307,7 @@
target_link_libraries(test_set_value_completion leaf_data_type)
cli_test(list_manipulation)
cli_test(interpreter)
+ target_link_libraries(test_interpreter proxydatastore)
cli_test(path_utils)
target_link_libraries(test_path_utils path)
cli_test(keyvalue_completion)