network as code
TRANSCRIPT
![Page 1: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/1.jpg)
Network as Code
Amanda Galligan – Infrastructure Services
WORKDAY CONFIDENTIAL
![Page 2: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/2.jpg)
Agenda
WORKDAY CONFIDENTIAL
• A lofty goal.. • Network Automation.. Could we do better? • Workday automation path to enlightenment ..
• Why NETCONF..? • Why YANG..?
• Service model – Rack provisioning – Walk through • Adopting development best practices • Source Control example for Network Validation tests
• Continuous Integration workflow
• A quick demo
![Page 3: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/3.jpg)
A lofty goal.. Infrastructure as code?
WORKDAY CONFIDENTIAL
![Page 4: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/4.jpg)
Network Automation.. Could we do better?
WORKDAY CONFIDENTIAL
![Page 5: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/5.jpg)
Workday automation path to enlightenment ..
WORKDAY CONFIDENTIAL
1. pExpect and paramiko scripts to perform large scale simple changes
2. Ansible templates mass
device configuration consistency
3. Automation of datacenter
expansion levering vendor zero touch provisioning tools and centralized inventory source
4. Single network wide interface to all network devices
5. NETCONF/YANG based
abstractions coupled with CI pipeline delivery.
6. Self service API leveraging fully tested abstraction layer
![Page 6: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/6.jpg)
Why NETCONF..?
WORKDAY CONFIDENTIAL
RFC6241 Network Configuration Protocol Ability to make configuration changes across multiple devices simultaneously based on abstracted requirements ACID principal - Atomicity, Consistency, Isolation, Durability
![Page 7: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/7.jpg)
Why NETCONF..?
WORKDAY CONFIDENTIAL
![Page 8: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/8.jpg)
Why NETCONF..?
WORKDAY CONFIDENTIAL
![Page 9: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/9.jpg)
Why NETCONF..?
WORKDAY CONFIDENTIAL
![Page 10: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/10.jpg)
Why NETCONF..?
WORKDAY CONFIDENTIAL
![Page 11: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/11.jpg)
Why YANG..?
WORKDAY CONFIDENTIAL
RFC6020 – Data modeling language Decouple the device specific configuration from desired configuration state YANG enforces conventions and structure Build on device-models by creating service-models
![Page 12: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/12.jpg)
Adopting development best practices
WORKDAY CONFIDENTIAL
![Page 13: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/13.jpg)
Source Control example for Network Validation tests
WORKDAY CONFIDENTIAL
![Page 14: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/14.jpg)
Network Element Driver – Unsupported items?
![Page 15: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/15.jpg)
Continuous Integration workflow
WORKDAY CONFIDENTIAL
![Page 16: Network as Code](https://reader034.vdocument.in/reader034/viewer/2022051714/58831ffc1a28abf0198ba5fe/html5/thumbnails/16.jpg)
Network automation is not about boiling the ocean
WORKDAY CONFIDENTIAL