10-05-2022 11:13 AM
We use generic NED with NSO 5.8. For sync-from, we'd like to apply filters to limit configuration data from device. My question is: do these filters have to be hard coded or can they be decided dynamically based on capabilities the device has? If latter, how to translate capabilities to these filters?
Solved! Go to Solution.
10-08-2022 02:23 PM
Experiments seem to indicate the filters are from config node in Maapi schemas.
10-08-2022 02:23 PM
Experiments seem to indicate the filters are from config node in Maapi schemas.
10-10-2022 05:17 AM
I would say that you should be a bit careful applying filters on sync-from in your NED code as you might end up in situations where expect to be in sync but in reality NSO just have a filter viewed of the config. This can potentially cause out of sync problems (depending on your NED implementation). So unless you have a very good use-case for it then i would recommend to stay away from such things.
10-10-2022 11:00 AM
If the filter is built based on the info under config node in schema, then it should include all supported, right?
10-11-2022 12:41 AM
As i don't have full understanding of what you want to achieve my answer may lack some context. But to comment on your question, Yes, the complete ned model is all augmented under /devices/device/config so the NEDs schema domain is all confined under "config" thus it includes all config supported by the NED.
I did miss to mention this earlier and is probably not what you are looking for but just for completion i wanted to mention it. NSO also supports a "partial sync-from" see "partial sync-from" in https://developer.cisco.com/docs/nso/guides/#!the-nso-device-manager/synchronizing-devices. This operation is not considered to be holistic in the same sense as the "sync-from" action, where NSO expects to be in sync with the complete schema domain after it has been run. This would be a "dynamic" sync operation to fetch parts of the config.
10-11-2022 06:30 AM
Thank you for the note, our generic NED does support partial sync-from and no filter is applied for that. Hope more Cisco employees will participate in discussions like this, thank you!
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