Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Network Automation with Nautobot

You're reading from   Network Automation with Nautobot Adopt a network source of truth and a data-driven approach to networking

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781837637867
Length 816 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (9):
Arrow left icon
Ken Celenza Ken Celenza
Author Profile Icon Ken Celenza
Ken Celenza
John Anderson John Anderson
Author Profile Icon John Anderson
John Anderson
Gary Snider Gary Snider
Author Profile Icon Gary Snider
Gary Snider
Jason Edelman Jason Edelman
Author Profile Icon Jason Edelman
Jason Edelman
Brad Haas Brad Haas
Author Profile Icon Brad Haas
Brad Haas
Glenn Matthews Glenn Matthews
Author Profile Icon Glenn Matthews
Glenn Matthews
Bryan Culver Bryan Culver
Author Profile Icon Bryan Culver
Bryan Culver
Christian Adell Christian Adell
Author Profile Icon Christian Adell
Christian Adell
Josh VanDeraa Josh VanDeraa
Author Profile Icon Josh VanDeraa
Josh VanDeraa
+5 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Part 1: Introduction to Source of Truth and Nautobot
2. Chapter 1: Introduction to Nautobot FREE CHAPTER 3. Chapter 2: Nautobot Data Models 4. Part 2: Getting Started with Nautobot
5. Chapter 3: Installing and Deploying Nautobot 6. Chapter 4: Understanding the User Interface and Bootstrapping Nautobot 7. Chapter 5: Configuring Nautobot Core Data Models 8. Chapter 6: Using Nautobot’s Extensibility Features 9. Chapter 7: Managing and Administering Nautobot 10. Part 3: Network Automation with Nautobot
11. Chapter 8: Learning about Nautobot APIs – REST, GraphQL, and Webhooks 12. Chapter 9: Understanding Nautobot Integrations for NetDevOps Pipelines 13. Chapter 10: Embracing Infrastructure as Code with Nautobot, Git, and Ansible 14. Chapter 11: Automating Networks with Nautobot Jobs 15. Chapter 12: Data-Driven Network Automation Architecture 16. Part 4: Nautobot Apps
17. Chapter 13: Learning about the Nautobot App Ecosystem 18. Chapter 14: Intro to Nautobot App Development 19. Chapter 15: Building Nautobot Data Models 20. Chapter 16: Automating with Nautobot Apps 21. Index 22. Other Books You May Enjoy Appendix 1: Nautobot Architecture 1. Appendix 2: Integrating Distributed Data Sources of Truth with Nautobot 2. Appendix 3: Performing Config Compliance and Remediation with Nautobot

Building an App for network automation

We’ll pick up where we left off in the previous chapter with our Nautobot IP ACLs App, extending it first to render the IP ACL configuration CLI based on the data stored in Nautobot, then to use Netmiko to push this rendered configuration directly to network devices.

Note

Much as in the previous chapter, this is something of a contrived example to help you get your hands dirty with App development and network automation using Apps. In your real network and real deployment of Nautobot, you’d probably want to use the Nautobot Golden Config App and/or Nautobot Firewall Models App to manage and implement this sort of device configuration, rather than writing your own app specifically for this purpose.

Rendering IP ACL config using Jinja2

We’re going to use Jinja2 as our templating engine for the rendering of the IP ACL configuration CLI. As you may recall, Nautobot uses this library natively as part of its Export Templates...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime