Nautobot jobs are an efficient way to run your Python based network automation scripts / API calls within a controlled environment, enabling you to provide access to the entire team. Nautobot jobs also provides the ability to take user defined input from a form to trigger a job.
How to setup Nautobot Jobs
Nautobot Jobs can be found under the main heading of Jobs
The url is <your-nautobot>/extras/jobs/

How to build your first Nautobot Job
In order to create your first Nautobot Job you need somewhere to write your job in Python, you then need to setup a Git Repo to upload the code to and then sync the Git Repo in Nautobot to pull the job in.
The folder structure of your repo needs to be nautobot-jobs/jobs
Nautobot Job Button
Jobs in Nautobot have to be run from the jobs menu, but there is also an option to create a button that will run the job directly from the page.
For example you can create a button on the interface page that will allow you to admin up / down a port directly from that interface page.
The button takes the port information and runs the job directly. You have to create a button receiver which is a bit different than a Nautobot job.

Leave a Reply