Skip to content

alfsandoCisco/code-is-the-new-cli

 
 

Repository files navigation



🤖💻 {Code} is The New CLI >_ ✨

Cisco DevNet Nairobi DevOps Community Python Ansible Terraform Telemetry

👋 Welcome

To everyone joining from the Nairobi DevOps Community and beyond: welcome. This repository is your central hub for demos, code, and homework throughout the course. Whether you are a seasoned network engineer taking your first steps into programmability, or a developer stepping into the networking world, you are in the right place.

Glad to have you here. Let's build something real.


🤔 Why Code-Driven Networking Is Overdue

APIs, structured data, version-controlled configs, infrastructure as code. The tools have been here for years. Yet a large portion of the industry still reaches for the CLI first. The resistance comes down to three things:

1. 🤝 Trust in the code. Running a script against 200 routers feels riskier than typing a command, but that gap closes fast once you work with tools that are actually robust and idempotent.

2. 🧰 Knowledge of the right stack. There is a real difference between a fragile loop of send_command() calls and a production-grade solution built on Ansible, Terraform, or model-driven APIs. Knowing which tool fits which problem is the craft.

3. 🚀 A shift in roles. Automation does not replace the network engineer. It upgrades the job. Configuration becomes a codebase, changes go through review, and tools become part of a much bigger workflow.

🤖 A note on AI and vibe-coded automation

Yes, you can prompt an LLM to write your Ansible playbook today. That is genuinely useful. But in networking, a bad suggestion pushed to production can take down services in seconds. AI output is only as good as your prompt, your domain knowledge, and your ability to validate what comes back. The more you understand the underlying protocols and tooling, the better your prompts become, and the more safely you can use AI as an accelerator rather than a co-pilot flying blind. Knowing what to ask, and knowing how to verify the answer, is the core skill this course develops.


📅 Course Agenda

Date Session Topics
April 27 🔗 Foundations & Data Handling Python for network engineers, data formats (JSON, YAML, XML), parsing and templating, working with structured data
April 30 🔗 Network interaction and IaC principles Usage of the pyATS library for network read/write, CLI parsing, device snapshots and Ansible 101
May 4 🔗 Infrastructure & Automation Part 1 Introduction to OpenTofu, model-driven programmability concepts, NETCONF protocol
May 7 Infrastructure & Automation Part 2 API usage principles, RESTCONF protocol, streaming telemetry and observability

👋🏽 About your instructor

Tokyo Offices
!
username Alfonso-(Poncho)-Sandoval
!
role developer title "Developer Avocado 🥑"
organization "Cisco DevNet"
location "Lisbon 🇵🇹 "
!
interface LinkedIn0/0
 ip address linkedin.com/in/asandovalros
 no shutdown
!
interface GitHub0/1
 ip address github.com/ponchotitlan
 no shutdown
!
end
!

🚀 Getting Started

Clone this repository and keep it close throughout the course:

git clone https://github.com/ponchotitlan/code-is-the-new-cli.git
cd code-is-the-new-cli

Built with ☕ and a healthy frustration with manual CLI configs.

About

A NetAuto crashcourse by Cisco DevNet x Nairobi Devops Community

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 90.5%
  • HCL 5.4%
  • Jinja 4.1%