I have a python service that is called through RESTCONF, and ran into an issue where the service was failing to create certain instances, but did not log any details of the failure in the service python vm log. When I re-created the issue through the NCS CLI instead of RESTCONF, I got a CLI error message showing that the device was rejecting the configuration when NSO attempted to apply it rather than there being a problem with the service itself. Is there a way to add logging for this kind of commit error within the python service code?
the problem is that the error happened after the create() code was executed, that is why in neither cases you get something on the python-vm log. The same message you see in the CLI, you should have received in the RESTCONF JSON/XML body together with a en error HTTP code.
Was that not the case?
From a log perspective, you will see the ERROR message in the develop.log file.
We are excited to announce that our call for speakers for our upcoming Developer Days events is open!
Automation is a journey in itself and no two journeys are alike. Planning and preparation are a must for any major project. Having an open mind to u...
Learning NSO hasn't been easier!
Although navigating the offerings may need some guidance.
You basically have two options, one instructor-led and one self-paced using free resources on DevNet. We of course recommend using both options.