[sysrepo-devel] bad version of ietf-netconf-acm

Radek Krejčí rkrejci at cesnet.cz
Thu Dec 1 12:29:19 UTC 2016


Hi,
regarding the time - working solution for YANG extensions will probably take few weeks.

But I'm not clear why do you mix the schema received from NETCONF server with the one you have locally on client side. Is there a reason for this? Why don't you just get (using get-schema) also the ietf-system module from the NETCONF server. They should work together since the extension instances in ietf-system will be removed. sysrepo and Netopeer2 do not implement NACM (work in progress), so the NACM extension does not have any effect in this moment and ignoring them in ietf-system does not change meaning of anything defined in it.

Regards,
Radek
 

Dne 1.12.2016 v 13:16 Joan Landry napsal(a):
> I attached the original and the one I get back (bad one) via get-schema
>
> The problem is that in removing the extensions it renders the model broken and also the ietf-system model becomes not usable as it also depends on acm
>
> pyang -f yang ietf-netconf-acm\@2012-02-22.yang  > tmp.yang      
>                
> ietf-netconf-acm at 2012-02-22.yang:141: error: extension "default-deny-all" is not defined in module ietf-netconf-acm
>
> do you know if there is a time frame for fixing this - if not we may need to remove the use of the ietf-system model from our system.
>
> Thanks for any info on this.
>
>
> -----Original Message-----
> From: Radek Krejčí [mailto:rkrejci at cesnet.cz] 
> Sent: Thursday, December 01, 2016 4:02 AM
> To: Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) <raszabo at cisco.com>; Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
> Subject: Re: [sysrepo-devel] bad version of ietf-netconf-acm
>
> Hi, some more info is in [1]. I believe that the only difference is in missing YANG extensions, which is a kind of "known bug" and we are working on extensions support in libyang (currently it is in a separate "extensions" branch and not yet ready for regular use). All other things should be equivalent, if not, it is a bug.
>
> [1] - https://github.com/CESNET/Netopeer2/issues/71
>
> Regards,
> Radek
>
>
> Dne 1.12.2016 v 09:15 Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at Cisco) napsal(a):
>> Hi,
>>
>>  
>>
>> What exactly is bad in the "bad" ietf-netconf-acm.yang ? Could you please provide the diff?
>>
>>  
>>
>> Thanks,
>>
>> Rastislav
>>
>>  
>>
>> *From:* sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] *On Behalf Of *Joan Landry
>> *Sent:* Wednesday, November 30, 2016 5:24 PM
>> *To:* sysrepo-devel at sysrepo.org
>> *Subject:* [sysrepo-devel] bad version of ietf-netconf-acm
>>
>>  
>>
>> I have found that there is a good version of  ietf-netconf-acm.yang and a bad version of the same file.
>>
>>  
>>
>> Both have the same rev dates. revision "2012-02-22"
>>
>>  
>>
>> For some reason when I download the models from the device I always get the bad version of this file on my mib browser which causes schema issues.
>>
>>  
>>
>> I have ensured that I installed the correct version in sysrepo via sysrepoctl install
>>
>>  
>>
>> I also ensured that the bad file does not exist in /etc/sysrepo/yang
>>
>>  
>>
>> Yet when I get the model from the device I get the bad file.
>>
>>  
>>
>> Any ideas if this is a bug in sysrepo - or how I can fix it?
>>
>>  
>>
>> Thanks
>>
>>
>>
>> _______________________________________________
>> sysrepo-devel mailing list
>> sysrepo-devel at sysrepo.org
>> http://lists.sysrepo.org/listinfo/sysrepo-devel

-- 
Radek Krejci
mobile  : +420 732 212 714
office  : +420 234 680 256
e-mail  : rkrejci at cesnet.cz
LinkedIn: http://www.linkedin.com/in/radekkrejci

CESNET, Association of Legal Entities
Zikova 4
160 00 Praha 6
Czech Republic




More information about the sysrepo-devel mailing list