09-25-2019 11:36 PM
I’ve got a simple list as below
list datalist {
leaf name {
type string;
}
leaf node {
type leafref {
path "/ncs:devices/ncs:device/ncs:name";
}
leaf required {
type int64;
}
leaf limit {
type int64;
}
I need to apply an algotithm (written in Python) that fires when an item in the list is added or removed. The algotithm is quite taxing so I’d like that it applies only on the changed portion of a configuration. How can I identify the relevant records in the list?
Solved! Go to Solution.
09-26-2019 08:26 AM
09-26-2019 01:59 AM
Kickers or subscribers is the way to go. Both of them are described in the development guide.
09-26-2019 08:26 AM
09-30-2019 11:26 AM
If you want to run these sort of subscriptions to changes in an external applications, there is aplan to implement RFC 8641 (fresh from last week!) soon.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide