Chapter 14
Parallel Call (pcall)
When running tests against the network, you may find it slow to connect to each device and collect output one by one. You may wonder if there’s a quicker way to connect to multiple devices at the same time. In this chapter, we are going to cover the topic of asynchronous programming, applying parallelism and multiprocessing to pyATS, and wrap up with a performance comparison when connecting to multiple testbed devices, running a command, and returning the parsed output.
This chapter covers the following topics:
Scaling Performance
When considering performance-scaling measures, many think it’s as simple as increasing the number of resources (CPU, ...
Get Cisco pyATS Network Test and Automation Solution: Data-driven and reusable testing for modern networks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.