Add Schema::leaftype(const std::string&)
Will be used in the CLI.
Change-Id: I31ddc63e92bfad4c37b5b2b65ae72c33e939af2f
diff --git a/src/static_schema.cpp b/src/static_schema.cpp
index 9b4f00b..43a8cdc 100644
--- a/src/static_schema.cpp
+++ b/src/static_schema.cpp
@@ -204,6 +204,11 @@
return boost::get<yang::leaf>(children(locationString).at(fullNodeName(location, node))).m_type;
}
+yang::LeafDataTypes StaticSchema::leafType([[maybe_unused]] const std::string& path) const
+{
+ throw std::runtime_error{"StaticSchema::leafType not implemented"};
+}
+
const std::set<std::string> StaticSchema::enumValues(const schemaPath_& location, const ModuleNodePair& node) const
{
std::string locationString = pathToSchemaString(location, Prefixes::Always);