cdb_exists() can be used to check if a node exists in cdb. Is there an api that can be used to check whether the schema is defined or not. For exmaple in the following schema I need to veriy if “test/bar/path” exists. The cdb_exists() api always logs an error
DEBUG badly formatted or nonexistent path - Bad path element “bar” after: /test/
container test {
container foo {
leaf path {
type empty;
}
}
}