[sysrepo-devel] question on how to register for callbacks

Joan Landry JoLandry at advaoptical.com
Wed Oct 12 12:03:02 UTC 2016


Yes, I see that I am able to get all of the augmented module changes when I register for the top level module, but I was wondering if there was a way to have callbacks per a specific module.

If not that is ok - I was just curious if there was a way to do that or not.
Thanks

-----Original Message-----
From: Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) [mailto:lmacko at cisco.com] 
Sent: Wednesday, October 12, 2016 7:31 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: RE: question on how to register for callbacks

Hi,

the data of augment are stored in the augmented module data file. When subscribing for the changes in the augemented module, you'll receive also the changes in augments. e.g: ietf-ip augements ietf-interfaces if you call sr_module_change_subscribe(session, "ietf-interfaces"... you'll be notified also about the changes in ietf-ip:ipv4 container

Regards,
Lukas

> -----Original Message-----
> From: sysrepo-devel [mailto:sysrepo-devel-bounces at sysrepo.org] On 
> Behalf Of Joan Landry
> Sent: Wednesday, October 12, 2016 1:23 PM
> To: sysrepo-devel at sysrepo.org
> Subject: [sysrepo-devel] question on how to register for callbacks
> 
> 
> I am able to register for call backs for a yang model that is not 
> augmented from another yang model, by using the module name as it appears via sysrepoctl --list.
> 
> However if I try to use the module name of a yang module that is 
> augmented from another yang module the call back fails even though I 
> am able to edit- config and get the data in that module.
> 
>  [ERR] (sr_set_socket_dir_permissions:2005) Unable to stat data file 
> for 'abc-
> ensemble-vrf': No such file or directory.
> [WRN] (cl_sm_get_server_socket_filename:1394) Attempt to subscribe to 
> unknown 'abc-ensemble-vrf' module probably [ERR]
> (cl_sm_get_server_socket_filename:1396) Unable to set socket directory 
> permissions for '/tmp/sysrepo-subscriptions/abc-ensemble-vrf/'.
> 
> 
> I tried numerous variation and none have worked, any info on this 
> would be greatly appreciated.
> thanks
> _______________________________________________
> sysrepo-devel mailing list
> sysrepo-devel at sysrepo.org
> http://lists.sysrepo.org/listinfo/sysrepo-devel


More information about the sysrepo-devel mailing list