Book Image

Practical Network Automation - Second Edition

By : Abhishek Ratan
Book Image

Practical Network Automation - Second Edition

By: Abhishek Ratan

Overview of this book

Network automation is the use of IT controls to supervise and carry out everyday network management functions. It plays a key role in network virtualization technologies and network functions. The book starts by providing an introduction to network automation, and its applications, which include integrating DevOps tools to automate the network efficiently. It then guides you through different network automation tasks and covers various data digging and performing tasks such as ensuring golden state configurations using templates, interface parsing. This book also focuses on Intelligent Operations using Artificial Intelligence and troubleshooting using chatbots and voice commands. The book then moves on to the use of Python and the management of SSH keys for machine-to-machine (M2M) communication, all followed by practical use cases. The book also covers the importance of Ansible for network automation, including best practices in automation; ways to test automated networks using tools such as Puppet, SaltStack, and Chef; and other important techniques. Through practical use-cases and examples, this book will acquaint you with the various aspects of network automation. It will give you the solid foundation you need to automate your own network without any hassle.
Table of Contents (9 chapters)

Web framework

As we start creating scripts, a challenge we face is how to execute them from various machines. A Python script (saved with extension .py) needs Python environment, for execution. This would mean that the execution of any script that is shared with different engineers can only be done if Python is installed on the machines from which the script needs to be executed. Additionally, as the script is shared, any new updates to the script would also need to be distributed to the engineers and we need to ensure that engineers execute only the latest one and not the old copies of it. This becomes very unmanageable in an environment where multiple engineers or teams are involved.

To overcome this challenge, we ensure of wrapping the Python scripts inside a web framework. Once the scripts are wrapped inside this framework, they are called Application Program Interfaces ...