LTRENT 2527 Automation & Programability
LTRENT 2527 Automation & Programability
and Programmability
LTRENT-2527
Cisco Webex App
Questions?
Use Cisco Webex App to chat
with the speaker after the session
How
1 Find this session in the Cisco Live Mobile App
2 Click “Join the Discussion”
3 Install the Webex App or go directly to the Webex space Enter your personal notes here
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Who is Vaibhav?
Architect
14 + Years in
Cisco
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Who is Josh?
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
• Introduction
• Primer
• SD-WAN Architecture
• SD-WAN API Overview
Agenda • Automation with Python
• Automation with Ansible
• SD-WAN Monitoring Automation
• Conclusion
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Primer
Evolution of WAN
• Circuit Switched Technologies
• ATM, Frame-Relay, ISDN
• MPLS and MPLS based VPNs
• MPLS Traffic Engineering
• Software Defined Methods, Transport Independent WAN
• Cloud Networking
• Cloud Security
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Pre-Network Automation
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
How management may perceive automation
• Limited human interaction
needed
• Foolproof
• Operationally disruptive(?)
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Network Automation Scripting
• Early Automation Approaches
• Expect
• Very basic scripts
• Low entry point
• Heavily used by new
operators
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Network Automation Scripting
• Embedded Languages (Cisco Routers and Switches)
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Network Automation Ansible
• Originally written by Michael DeHaan and later aquired by Red Hat
• Does not require an agent on the target system, leveraging SSH for
system connectivity
Data Plane
• Physical or Virtual MPLS 4G Cloud Security Application
• Zero Touch Provisioning INET Connectivity QoE
• On-Premise or Cloud SD-WAN Routers
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
SD-WAN Fabric Operation Walk-Through
OMP Update:
vSmart ▪ Reachability – IP Subnets, TLOCs
▪ Security – Encryption Keys
OMP
▪ Policy – Data/App-route Policies
DTLS/TLS Tunnel
OMP OMP
IPSec Tunnel Update Update
BFD OMP Policies OMP
Update Update
T3 T4 TLOCs TLOCs T1 T2
T4
T2
VPN1 VPN2 Transport2 VPN1 VPN2
BGP, OSPF, BGP, OSPF,
Connected, Connected,
Static A B C D Static
Subnets Subnets
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
SD-WAN API
Overview
Representational State Transfer
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Key API Verbage
Source: https://tutorialedge.net/software-eng/what-is-a-rest-api/
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
vManage REST APIs
• vManage uses REST 3rd Party Applications
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
vManage–Using REST APIs
• Python
• Ansible
• CURL
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
URI Structure
https://vmanage-ip/dataservice/device/bfd/state/device?deviceId=1.1.1.7
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Using Postman
Using Postman for Automation
• Postman is a well known tool
that many network operators
use to support the execution of
API calls
• Using environment variables
common items can be reused
easily
• Test cases can be used
as to allow for testing
automation to be handled
directly out of postman
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Automation with
Python
Using Python for Automation
• Since Pythons inception it has rapidly become
a key language used by network
administrators
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Automation with
Ansible
Using Ansible for Automation
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
SD-WAN
Monitoring
Automation
Monitoring SDWAN Automation
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Conclusion
What we learned ?
• Automation is the lazy persons swiss army knife
• Ansible can simplify automation for users who are even not familiar
with programming languages
DC Edge1 DC Edge2
MPLS INET
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Complete your Session Survey
• Please complete your session survey
after each session. Your feedback
is very important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (open from Thursday) to
receive your Cisco Live t-shirt.
• All surveys can be taken in the Cisco Events Mobile App or
by logging in to the Session Catalog and clicking the
"Attendee Dashboard” at
https://www.ciscolive.com/emea/learn/sessions/session-
catalog.html
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Continue
Agenda Your Education
LTRENT-2527 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Thank you