[sysrepo-devel] sr_list_schema

fabio antonini f.antonini at tiesse.com
Wed Nov 30 10:36:55 UTC 2016


Hi Joan

I have experienced the same problem, but I have fixed the problem 
removing all the configuration/compilation products in my sysrepo/build 
directory

hope this can help
fabio
On 29/11/2016 21:34, Joan Landry wrote:
>
> 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);
>
>      }
>
>
>
> _______________________________________________
> sysrepo-devel mailing list
> sysrepo-devel at sysrepo.org
> http://lists.sysrepo.org/listinfo/sysrepo-devel

-- 
Fabio Antonini (Ph.D)
Tiesse Spa
Via Corradini 80, 67051 Avezzano (Aq)
mobile: +39 3939261941
phone: +39 0863455830
fax: +39 0863455830
f.antonini at tiesse.com
  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20161130/5a0b7142/attachment.html>


More information about the sysrepo-devel mailing list