01-22-2021 09:08 PM
I want to do pre and postcheck before and after the service creation.
Service creation done using service template YANG, Python and XML.
Is there any option to perform pre and postcheck?
01-24-2021 02:32 PM
There are more experienced people here, my 2 cents is as follows ..
One way for handling pre-check and post-check for services is by utilizing pre_modification and post_modification decorators.
When you create a service with ncs-make-package utility, you can see them in python code.
regards..
01-25-2021 01:30 AM
Ive got a small example on how to add post checks to your services https://github.com/NSO-developer/selftest
02-03-2021 03:04 PM - edited 02-03-2021 03:28 PM
In nso development doc
there is steps & sample for action handler where you could create action package where you could use it in
$ ncs-make-package --service-skeleton python pyaction --component-class action.Action --action-example
where you could use the below function for post and pre_modification check
@service.pre_modification @service.post_modification |
|
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: