Implement the NetconfAccess class
Change-Id: Idd63318364edd424e9c477f26db3c6d032721e8a
diff --git a/src/yang_schema.hpp b/src/yang_schema.hpp
index baeb466..4565150 100644
--- a/src/yang_schema.hpp
+++ b/src/yang_schema.hpp
@@ -9,6 +9,7 @@
#pragma once
#include <functional>
+#include <optional>
#include <set>
#include <stdexcept>
#include <unordered_map>
@@ -19,6 +20,8 @@
class Context;
class Set;
class Schema_Node;
+class Data_Node;
+class Module;
}
/*! \class YangSchema
@@ -57,6 +60,10 @@
/** @short Adds a new directory for schema lookup. */
void addSchemaDirectory(const char* directoryName);
+ /** @short Creates a new data node from a path (to be used with NETCONF edit-config) */
+ std::shared_ptr<libyang::Data_Node> dataNodeFromPath(const std::string& path, const std::optional<const std::string> value = std::nullopt) const;
+ std::shared_ptr<libyang::Module> getYangModule(const std::string& name);
+
private:
std::set<std::string> modules() const;