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

Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco) lmacko at cisco.com
Wed Oct 12 11:31:24 UTC 2016


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