Comments (6)
The problem is, when you have a hierarchical model as we do here, every subscription is woken up for any change (configuration or state) because all the modules augment the same base module... It becomes unusable very quickly.
from sysrepo.
Yes, this is expected and you had not even needed to provide an example. All the changes of a module are always communicated using a single SHM. So, when an event is generated, all the subscribers are notified because the XPath filtering is performed on the side of the subscribers.
This is a feature and works as intended. However, you are not the first to mind it so I will try to optimize it later, once I finish fixing other current issues.
from sysrepo.
OK, thanks!
from sysrepo.
So I have looked at this more and I am not sure anymore there is anything that could be optimized. The subscribers perform the filtering also because the have a filtered_out
counter that can be retrieved and is needed for some statistics. Not generating an event would cause this counters to be inaccurate.
from sysrepo.
Fine, try using the new option SR_SUBSCR_FILTER_ORIG
that should do what you need.
from sysrepo.
Works for me! Thanks a lot.
from sysrepo.
Related Issues (20)
- When will 'sr_get_changes' be applied? HOT 4
- Installation error on openWRT 23.05 HOT 3
- Callback Function Receives Original Configuration During Deletion Despite Field Modification HOT 6
- Redundant parameters HOT 9
- Question about sr_connect performance HOT 3
- Memory leak when inserting into a user ordered list after a nonexistent key HOT 2
- Failed to generate netconf-config-change notification, but changes were applied HOT 8
- Sysrepo commands too slow to parse over 200 yang modules HOT 8
- sysrepo application with indirect approach HOT 4
- Suggest configurable timeout for getting operational state data HOT 6
- Question: Force triggering change callback HOT 4
- Function sr_apply_changes is too slow HOT 10
- Can a plugin modify module B based on changes in module A? HOT 2
- sysrepoctl segmentation fault when installing module HOT 4
- Can a plugin modify module B based on changes in module A when validation of module A depends on module B? HOT 11
- inconsistent `location` leaf-list within the `ietf-yang-library` HOT 1
- Question: Public API to use NACM to filter data? HOT 4
- [ERR] Data model "ietf-netconf-monitoring@2010-10-04" not found in local searchdirs. HOT 1
- `sr_module_change_subscribe` appears to provide config data in the operational datastore HOT 3
- How to provide factory default datastore for sysrepo-plugind module in order to configure the plugin order? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysrepo.