[sysrepo-devel] notifications

Radek Krejčí rkrejci at cesnet.cz
Tue Dec 13 15:33:57 UTC 2016


Hi,
for testing purposes, you can now use Netopeer2's notifications branch, it should work with the devel branches from other projects. I wasn't testing notifications from sysrepo, but I'm receiving netconf-session-start and netconf-session-end notifications generated by the server (and then sent through sysrepo, due to future use of the notifications storage).

Notifications replay is not implemented as well as the subtree and xpath filters specified in subscription. Streams match the names of the schemas defining some notification, the default NETCONF stream includes all the notifications.

Regards,
Radek


Dne 30.11.2016 v 10:13 Radek Krejčí napsal(a):
> Hi, it is not yet possible.
>
> Radek
>
> Dne 30.11.2016 v 03:28 Joan Landry napsal(a):
>> Is there a way to turn on this capability, for testing purposes. I am trying to test sending a notification but I think MgSoft browser does not allow you to register for a notification unless the capability is announced.
>>
>> Else is there another way to test this?
>>
>> Thanks
>>
>> -----Original Message-----
>> From: Radek Krejčí [mailto:rkrejci at cesnet.cz] 
>> Sent: Tuesday, November 29, 2016 3:52 AM
>> To: Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) <lmacko at cisco.com>; Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
>> Subject: Re: [sysrepo-devel] notifications
>>
>> just a note - they are supported in sysrepo, in Netopeer2 they are not yet fully supported. It shouldn't need much work (I already have some working base code), but because of the busy end of the year, I'm not sure when I'll be able to finish it.
>>
>> Regards,
>> Radek
>>
>>
>> Dne 29.11.2016 v 08:51 Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) napsal(a):
>>> Hi,
>>>
>>> notifications are already supported API can be found here https://github.com/sysrepo/sysrepo/blob/master/inc/sysrepo.h#L1441-L1542
>>>
>>> an example of sending a notification is here
>>>
>>> https://github.com/sysrepo/sysrepo/blob/master/examples/rpc_example.c#L104-L109
>>>
>>>  
>>>
>>> Regards,
>>>
>>> Lukas
>>>
>>>  
>>>
>>>  
>>>
>>> *From:*sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] *On Behalf Of *Joan Landry
>>> *Sent:* Monday, November 28, 2016 7:28 PM
>>> *To:* sysrepo-devel at sysrepo.org
>>> *Subject:* [sysrepo-devel] notifications
>>>
>>>  
>>>
>>> Does anyone know the status of notification support availability?
>>>
>>>  
>>>
>>> Also, is there any example code for sending a notification?
>>>
>>>  
>>>
>>>
>>>
>>> _______________________________________________
>>> 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