[sysrepo-devel] commit on multiple models

Joan Landry JoLandry at advaoptical.com
Tue Oct 18 18:58:28 UTC 2016


I found a solution to this by looking out iter->count.
Thanks

From: Joan Landry
Sent: Tuesday, October 18, 2016 11:15 AM
To: sysrepo-devel at sysrepo.org
Subject: commit on multiple models

I would like to know if there is a way to find out the number of callbacks that will occur per commit cmd if I change multiple model content.

It looks like if I change the content in two different  models (eitf-interface and ietf-system) I get a sequence of verify/apply for each.

So I get a total of 4 callbacks - verify/apply for ietf-interface followed by verify/apply for ietf-system.

When I get the first verify callback I would like to know that in the pipe there is another verify/apply so that when I update my external database I update it at the end of the very last verify.

Any info on how to find out how many callbacks are in the pipe per commit.


Thanks,

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


More information about the sysrepo-devel mailing list