commit | a878960516c0ac37beedb60165be68340cfc0d30 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Mon Jul 20 15:18:19 2020 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Aug 25 12:24:17 2020 +0200 |
tree | 0341a66573f714504a9cb6c3a3063dadadc80d47 | |
parent | 1701d731e29d9fa57163177f5877a0d56958d201 [diff] [blame] |
Add datastore support for YANG actions Change-Id: I15b96f70ce89b7bbe3ac0fefb7b018374eeabd84
diff --git a/src/yang_schema.cpp b/src/yang_schema.cpp index 05195b9..681861e 100644 --- a/src/yang_schema.cpp +++ b/src/yang_schema.cpp
@@ -512,3 +512,8 @@ return std::nullopt; } + +std::string YangSchema::dataPathToSchemaPath(const std::string& path) +{ + return getSchemaNode(path)->path(LYS_PATH_FIRST_PREFIX); +}