Add discard command
Change-Id: Ie2243188694657665240769d93b2835034e48c3a
diff --git a/src/sysrepo_access.cpp b/src/sysrepo_access.cpp
index 27ddba2..57d1cb3 100644
--- a/src/sysrepo_access.cpp
+++ b/src/sysrepo_access.cpp
@@ -131,6 +131,11 @@
m_session->commit();
}
+void SysrepoAccess::discardChanges()
+{
+ m_session->discard_changes();
+}
+
std::string SysrepoAccess::fetchSchema(const char* module, const char* revision, const char* submodule)
{
auto schema = m_session->get_schema(module, revision, submodule, SR_SCHEMA_YANG); // FIXME: maybe we should use get_submodule_schema for submodules?