Automating Networks with Nautobot Jobs
In the previous chapter, we focused on using Nautobot with Ansible. We also touched on the value of Nautobot Jobs and how they may compare to Ansible playbooks. In this chapter, we’ll dive deep into Nautobot Jobs. Nautobot Jobs are a great opportunity to bring automation into your network while using Nautobot as a full-blown automation platform. By bringing together the power of direct database access to your Nautobot data with the ability to run Python code, you can iterate very quickly and create powerful automation solutions.
This chapter begins with an overview and an introduction to the Django Object-Relational Mapper (ORM). We’ll walk through how to create Jobs using the ORM, migrate Python scripts to Nautobot and run them as Jobs, and orchestrate Jobs together. After, we’ll cover permissions, logging, scheduling, and approvals before covering how to add and distribute Jobs to Nautobot.
In this chapter, we will...