commit | 0599e9fc93ce5bd48e33616bc9d11fcd423cbdee | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Tue Apr 21 09:51:33 2020 +0200 |
committer | Jan Kundrát <kundrat@cesnet.cz> | Tue Apr 21 13:22:13 2020 +0200 |
tree | ee45de1f95934030896b304e815e11dfed2c092b | |
parent | 19dfa495ebeaf0e9f8a311b54f11c469f2b0813c [diff] [blame] |
Add info about config false leafs to describe Change-Id: Ie256f11617a48ec6dfa913cae1484550e9ec8664
diff --git a/src/yang_schema.cpp b/src/yang_schema.cpp index 2719bc6..046bfcd 100644 --- a/src/yang_schema.cpp +++ b/src/yang_schema.cpp
@@ -455,3 +455,8 @@ auto node = getSchemaNode(path.c_str()); return node->dsc() ? std::optional{node->dsc()} : std::nullopt; } + +bool YangSchema::isConfig(const std::string& path) const +{ + return getSchemaNode(path.c_str())->flags() & LYS_CONFIG_W; +}