Getting Started with ZTP using IOS-XR and Cisco Crosswork
Transcript of Getting Started with ZTP using IOS-XR and Cisco Crosswork
![Page 1: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/1.jpg)
#CiscoLive | #DevNetDay
Akshat Sharma, TME, Cisco
Network automation from Day 0!
Getting Started with ZTP using IOS-XR and Cisco Crosswork
@irakshat https://github.com/akshshar
![Page 2: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/2.jpg)
Agenda
#CiscoLive | #DevNetDay © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public
• IOS-XR ZTP Crash Course• Introducing Cisco Crosswork• Cisco Crosswork ZTP Server• Demo!
• Learn More!
2
![Page 3: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/3.jpg)
IOS-XR ZTP Crash Course
![Page 4: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/4.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Automated Installation of IOS-XR images
4
DHCP Server
Router
IOS-XR image
downloaded
Web ServerInitial DHCPv4/v6
IOS-XR images
• Cisco Platforms: ISO format for iPXE
• Supported Whitebox Platforms: ONIE compatible installer
![Page 5: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/5.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Automated Provisioning using ZTP
5
DHCP Server
IOS-XR
ZTP script
downloaded
Web Server
Initial DHCPv4/v6
and/or SLAAC (IPv6)
messages
ZTP Artifacts
• CLI Configuration• ZTP script:
Ø Native Python scriptsØ Native bash scripts,Ø Golang/c++/pyinstaller binaries
![Page 6: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/6.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
ZTP Functions
7
ZTP
Deploy Applications(Containers, Binaries,cron-jobs, etc.)
Provide on-box automation libraries:Cli, Yang-APIs etc.
Software Upgrade/Downgrade
Apply Configuration
![Page 7: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/7.jpg)
Introducing Cisco Crosswork
![Page 8: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/8.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Cisco Crosswork: Automation and Analytics at every stage of the Device Lifecycle
Real-time trackingof network state
Network configuration
changes
APIs
Configuration Deployment
Crosswork Change Automation
Crosswork Data Gateway
Crosswork Health InsightsCrosswork Zero-Touch Provisioning (Classic)
Provisioning Profile: SW Image and Config
Zero Touch Telemetry
![Page 9: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/9.jpg)
Cisco Crosswork ZTP Server
![Page 10: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/10.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Enter Crosswork ZTP ServerEnabling dynamic scheduling of ZTP workflows
12
Image Server
Config/Script Server
ZTP Controller
Crosswork Zero-Touch Provisioning (Classic)
DHCP Server
Crosswork ZTP APIs
ZTP Job scheduler(home-grown, cluster schedulers like
Kubernetes, marathon etc.)
Initial DHCPv4/v6 and/or SLAAC (IPv6)
messages
• Images for iPXE• Configs/scripts
for ZTP
![Page 11: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/11.jpg)
Demo!Closed loop automation with IOS-XR ZTP and Cisco Crosswork
![Page 12: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/12.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Demo! Closed loop automation with IOS-XR ZTP and Cisco Crosswork
15
Image Server
Config/Script Server
ZTP Controller
Crosswork Zero-Touch Provisioning (Classic)
DHCP Server
Crosswork ZTP APIs
REST Based ZTP Hook Server
Initial DHCPv4/v6 and/or SLAAC (IPv6)
messagesPython Script
Downloaded from Crosswork ZTP Server
• Set up ZTP configs, profiles, Device settings,
• Trigger onboarding
Python ZTP script REST notification
upon success
![Page 13: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/13.jpg)
Learn more!
![Page 14: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/14.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Explore More on IOS-XR ZTP • Blogs on xrdocs:
https://xrdocs.io/device-lifecycle/• IOS-XR ZTP: Learning through Packet Captures• Working with Zero Touch Provisioning• iPXE Deep Dive
• IOS-XR ZTP APIs (Bash and Python):• DevNet Sandbox based Learning Labs
• IOS-XR ZTP on Github• IOS-XR ZTP Python library, sample scripts• xr-restztp (ZTP hook server used in the demo)
![Page 15: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/15.jpg)
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public#CiscoLive | #DevNetDay
Explore More on Cisco Crosswork for ZTP
• Cisco Crosswork on Devnet• Cisco Crosswork API, Getting Started and more
• Postman Collection from Today’s ZTP demo:• Crosswork ZTP demo Postman collection
• Cisco Crosswork Installation Guides:• https://www.cisco.com/c/en/us/support/cloud-systems-
management/crosswork-network-automation/products-installation-guides-list.html
![Page 16: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/16.jpg)
Thank you
#CiscoLive | #DevNetDay
![Page 17: Getting Started with ZTP using IOS-XR and Cisco Crosswork](https://reader034.fdocuments.in/reader034/viewer/2022042019/6255edd373f31376d378be4d/html5/thumbnails/17.jpg)
#CiscoLive | #DevNetDay