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.
It is best practice to avoid storing your secrets (e.g., passwords and shared keys) in plain text, either on NSO or on the device. In NSO, we support multiple encrypted data types that are encrypted using a local key. Similarly, many devices such as Cisco...
Cisco Developer Days, September 14-15, 2021
On Tuesday next week, we will open the doors to the 11th Cisco Developer Days!
If you have not registered for the free, virtual event, do it now!
What can you expect?
We have a packed 2-day agen...
In the blog post series called "Unlocking Performance in your NSO System" we talked about the need to measure performance and to profile the performance in order to identify bottlenecks. We didn't go into any details about how to do this. Last year at the...
Finally, as you may have seen in the News & Announcement, we have opened the landing page for the next Developer Days event in September! The September 14/15 event is the first in a series of three virtual events in the three regions (EMEAR/US/Asia Pa...
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...