[sysrepo-devel] sr_list_schema
Joan Landry
JoLandry at advaoptical.com
Tue Nov 29 20:34:54 UTC 2016
Is there a known issue with using sr_list_schema function?
I upgraded to the master branch and prior to this the printing of the schema looked like this
======= iana-if-type ============
======= ietf-interfaces ============
======= ietf-ip ============
======= ietf-inet-types ============
======= ietf-yang-types ============
======= ietf-netconf-monitoring ============
======= ietf-netconf-acm ============
======= ietf-netconf ============
======= ietf-netconf-with-defaults ============
======= iana-crypt-hash ============
======= ietf-system ============
==
I did not change the code to printout the schemas and now I get this:
======= iana-if-type ============
======= hX\ufffd\ufffd\ufffd ============
======= (null) ============
======= (null) ============
======= (null) ============
======= (null) ============
======= (null) ============
======= /etc/sysrepo/yang/ietf-yang-types at 2013-07-15.yang ============
======= 2016-09-21 ============
======= (null) ============
======= ncwd ============
======= urn:ietf:params:xml:ns:netconf:base:1.0 ============
code:
rc = sr_list_schemas(session, &schemas, &cnt);
if (SR_ERR_OK != rc) {
fprintf(stderr, "failed to retrieve schemas: %s\n", sr_strerror(rc));
}
else
{
size_t idx;
for (idx=0; idx < cnt; idx++)
{
printf("======= %s ============\n",schemas[idx].module_name);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20161129/5bba2efe/attachment.html>
More information about the sysrepo-devel
mailing list