03-10-2021 05:37 AM
I'm wondering in what ways I can tie in pyATS when making configuration changes or deploying services with NSO. Is there a way to tie in this platform before making a change and after making a change to verify changes are made successfully? Rollback changes when pyATS determines issues occurred or is there a way to do this natively within NSO?
Solved! Go to Solution.
03-11-2021 12:13 AM
03-10-2021 07:16 AM
Hi,
Interesting question!
The answer would be "depends" on how are you using PyATS. For example, one of the things PyATS does is to give you a model on top of Cisco's different CLIs to facilitate tests. This is something that may interest you to test the devices directly even for NSO target configurations.
What I did test in the past is that PyATS is evolving to support NETCONF. In this sense, you could have PyATS to call NSO for test automation using our NETCONF/YANG API for either service or device modules.
Finally, a number of our customers also integrate NSO towards the ROBOT testing framework: https://robotframework.org/
(Cisco CX services can eve help you in this environment).
All in all, you can use the NETCONF support in PyATS to connect to NSO and automate your service tests but you can also use other frameworks.
03-10-2021 07:43 AM
So we haven't implemented NSO or pyATS yet. I'm trying to figure out how to ensure that when NSO makes a configuration change on the network, tests are run before and after to ensure everything is stable. pyATS in this use case will not interact with the devices in a write fashion at all, only a read capability to gauge how successful the change was. If this is covered in some way in NSO, great. I'm just trying to figure out what an appropriate test platform should be and how to use it around NSO.
03-10-2021 08:58 AM
03-11-2021 12:13 AM
03-10-2021 09:18 AM
Did some digging and found these 2 posts:
It looks like there are pre and post mod decorators I can use but it looks like this isn't recommended for operations that take awhile since this would be within the transaction lock but maybe this is where pyATS could be integrated within the service python code itself?
03-10-2021 10:55 AM
03-11-2021 12:28 AM
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