Add move command for moving (leaf)list instances
Change-Id: I0bff25209f74601a450c12a810200b3c124d65f2
diff --git a/src/datastore_access.hpp b/src/datastore_access.hpp
index 287ba94..05c1296 100644
--- a/src/datastore_access.hpp
+++ b/src/datastore_access.hpp
@@ -11,6 +11,7 @@
#include <map>
#include <optional>
#include <string>
+#include "yang_move.hpp"
#include "ast_values.hpp"
#include "list_instance.hpp"
@@ -37,6 +38,8 @@
class Schema;
+struct dataPath_;
+
class DatastoreAccess {
public:
using Tree = std::vector<std::pair<std::string, leaf_data_>>;
@@ -49,6 +52,7 @@
virtual void deleteListInstance(const std::string& path) = 0;
virtual void createLeafListInstance(const std::string& path) = 0;
virtual void deleteLeafListInstance(const std::string& path) = 0;
+ virtual void moveItem(const std::string& path, std::variant<yang::move::Absolute, yang::move::Relative> move) = 0;
virtual Tree executeRpc(const std::string& path, const Tree& input) = 0;
virtual std::shared_ptr<Schema> schema() = 0;