RouteByCode

Network Automation & Python

Guides, scripts, and write-ups for network engineers who want to build infrastructure with code.

Posts
MI
Location
2+
Years
Online

Explore


🐍

Python Automation

Netmiko, Nornir, pyATS. Scripts that run against production gear.

🌐

Network Engineering

BGP, OSPF, VXLAN, spine-leaf. Configs and diagrams.

🔒

Security & NAC

802.1X, MAB, Palo Alto. Locking things down the right way.

⚙️

Infrastructure as Code

Ansible, Git, CI/CD. Network configs managed like software.


scan_network.py
#!/usr/bin/env python3 from nornir import InitNornir from nornir_netmiko.tasks import netmiko_send_command nr = InitNornir("config.yaml") def get_mac_table(task): r = task.run( netmiko_send_command, command_string="show mac address-table", use_textfsm=True ) return r.result results = nr.run(task=get_mac_table) print(f"Scanned {len(nr.inventory.hosts)} switches")
Blog

Posts

Guides, scripts, and notes from the field.

Loading posts...
← Back to posts

Cam
// Network Operations Manager
📍 Michigan

Network engineer with a passion for building enterprise infrastructure with code. I work across switching, wireless, NAC, and automation — mostly Cisco gear, mostly Python.

This site is a living notebook: configs that worked, scripts I actually use, lessons from production environments.

Python
Nornir
Netmiko
pyATS
Ansible
Cisco IOS-XE
Cisco 9800
BGP / OSPF
PacketFence
Cloudflare
Git / CI/CD
VXLAN
Tools

Network Tools

Quick utilities for network engineers.

🔢 CIDR Calculator

Full subnet breakdown from any CIDR block.

🔌 Wildcard Mask Converter

Convert subnet mask to wildcard (ACL/OSPF use).

🌐 Subnets in CIDR Block

Split a block into smaller subnets. Enter the block and new prefix.

📋 Troubleshoot Checklist

Pick a scenario and get a structured CLI checklist.

Contact

Get in touch

Let's talk

Email
Location
Michigan, USA
✓ Message sent — I'll get back to you soon.
✗ Something went wrong. Try emailing directly.
← Cancel

New Post

0 chars
Use toolbar to insert HTML.
Code: <pre data-lang="py"><code>…</code></pre>
Draft saves to localStorage.
Admin Mode Active

Settings

Delete Post?

This cannot be undone.