Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Network Automation with Python, Ansible and Workflows
32 students

Network Automation with Python, Ansible and Workflows

Paramiko, Netmiko, NAPALM, Scrapli and Ansible on real switches, then the same safe change as a no-code workflow.
Last updated 10/2026
English
English

What you'll learn

  • Read any automation as workflows of nodes, run by an agent against your own devices.
  • Build, wire, target, and run a device workflow end to end against a real switch — no scripting required.
  • Make a workflow think: branch on results, loop over a list, reuse a whole flow as one node, and pause for human approval.
  • Register devices, group them into reusable pools, and know where their credentials live and who may use them.
  • Connect an on-premise agent to your network, read its health, and lab-test against real NOS images before production.
  • Change real gear safely — rehearse with a dry run, snapshot the config first, and roll back automatically when a change fails.
  • Read the compliance dashboard, find the devices that drifted, and gate a workflow on policy.
  • Extend automation into the rest of your toolchain — notifications, PDF reports, ServiceNow, Ansible, git, and AI-assisted nodes.
  • Automate real switches in Python with Paramiko, Netmiko, Scrapli and NAPALM, and turn CLI output into data with TextFSM and TTP.
  • Write idempotent Ansible playbooks, and build a safe change in pure Python: pre-check, diff, commit-confirm, post-check, rollback.

Course content

26 sections • 122 lectures • 3h 18m total length
  • Section intro0:26

    A short look at what this section covers. How the platform works — start here, no prior automation needed.

  • Watch one run - automation in a minute1:23

    In this lesson you'll:

    • See what the platform does, from start to finish

    • Understand that you build a task once and run it anywhere

    • Find the node palette, the Run button, and a node's Results tab


    Terms you'll hear: automation, workflow run.

  • The big picture - cloud, agent, device1:15

    In this lesson you'll:

    • Name the three pieces — cloud, agent, device

    • Understand that the cloud never touches your devices directly


    Terms you'll hear: control loop, agent.

  • Workflows and nodes - the building blocks1:29

    In this lesson you'll:

    • Say what a workflow is in one sentence

    • Say what a node is, and why everything is a node

    • Click a node to open its settings in the panel on the right

    • Understand that the agent runs a workflow one node at a time


    Terms you'll hear: workflow, node.

  • What is an agent?1:18

    In this lesson you'll:

    • Say what an agent is, where it runs, and what it does

    • Understand the heartbeat and why the green dot matters


    Terms you'll hear: agent, heartbeat.

  • Devices and pools - what you run against1:45

    In this lesson you'll:

    • Find your devices in the inventory

    • Create a pool — a named group of devices

    • Pick a pool in the Run dialog so one workflow targets every device in it


    Terms you'll hear: device inventory, device pool.

  • Dry-run vs live - rehearse before you touch anything1:23

    In this lesson you'll:

    • Tell a dry run apart from a live run

    • Understand a dry run changes nothing on real devices

    • Read the pre-flight check before you commit


    Terms you'll hear: dry run, live run.

  • Backup and rollback - your undo button1:09

    In this lesson you'll:

    • Save a device's settings with a backup before you change it

    • Understand backups build a dated history

    • Undo a bad change with the Rollback Config node


    Terms you'll hear: configuration backup, rollback.

  • Credentials and the trust promise - where passwords live1:24

    In this lesson you'll:

    • See where a device password is stored once as a named credential

    • Understand that your browser locks the secret for your agent before it leaves the page

    • Understand the agent uses it locally and, stored On-Premise, the cloud can't read it


    Terms you'll hear: credential, trust promise.

  • Compliance and drift - did anything change?1:17

    In this lesson you'll:

    • Read a compliance result as pass or fail against your rules

    • Understand drift as a device changing from its approved setup

    • Check compliance as a step inside a workflow


    Terms you'll hear: compliance, configuration drift.

  • Foundations knowledge check

Requirements

  • Comfortable with the idea of logging into a network device — we explain the rest.
  • Access to an AutomateNetOps workspace.
  • Credentials for the network equipment you want to manage.
  • To follow along on hardware: a test device reachable through an on-premise agent (the lessons run against a Cisco Catalyst, an Arista and a Juniper EX).
  • To run an agent yourself: a Linux host with Docker and Docker Compose, with outbound access to the platform.
  • Optional, for the later sections only: the far side of each integration you connect (SMTP or Slack, ServiceNow, a git repository, NetBox) and an AI provider configured once by an admin.
  • For the Python sections: basic Python (variables, functions, loops) and a Linux host or VM with Docker, where you run containerlab and the free Arista cEOS image (downloaded from Arista's website with a free account).

Description

This course contains the use of artificial intelligence.

Network automation is taught two ways: as Python, or as a product. This course does both, on real switches, and shows you where each one earns its place.

You will build automation the way a network team actually has to ship it: visually, against real gear, with a rehearsal before every live run, a snapshot before every change, and an audit trail your security team can read. Every product demonstration in this course is a real screen recording of the platform driving real network devices — a Cisco Catalyst and an Arista switch in a working lab — not slideware and not a mock-up.

We begin with the shape of the system: the cloud that holds your workflows, the on-premise agent that runs them inside your network, and the devices at the end of the line. From there you build your first workflow end to end — connect, capture, parse, verify, notify — and then make it think, with conditionals, variables, iterators, reusable sub-workflows, and a gate that pauses for a human before anything risky happens.

Then you point it at your fleet. You will register devices, group them into pools, store credentials so that nobody has to hand a password around, stand up an on-premise agent, and lab-test against real network operating system images before you touch production.

The back half is the part that decides whether automation survives contact with a change window: dry runs, backup and rollback, compliance scoring and drift, roles and permissions, and integrations into notifications, PDF reports, ServiceNow, Ansible, git, and AI-assisted nodes.

The Python half starts from nothing. You open an SSH session with Paramiko and discover exactly why that is hard; then Netmiko, TextFSM and TTP parsing, Scrapli and asyncio, NAPALM's vendor-neutral getters and reviewable changes, and Ansible's idempotent playbooks, every script run against a two-switch Arista lab you build yourself with containerlab. It ends in a capstone: one VLAN change done properly, with a pre-check, a diff, a commit-confirm, a post-check and a rollback of every switch, in 155 lines of Python, and an honest list of what those lines still can't give you.

You need no prior automation experience. You need to be comfortable logging into a network device — we will explain the rest.

Who this course is for:

  • Network engineers new to automation who would rather start with workflows than with scripts.
  • NetOps teams evaluating low-code automation tooling before they commit to it.
  • Operators running real configuration change who need a safety net and an audit trail.
  • Compliance and security stakeholders who have to approve what the network team automates.
  • Org admins setting up roles, sites, credentials, and integrations for a team.
  • Network engineers learning Python automation who want every script run against real devices, not slides.