Automating Network With Ansible and Cisco NSO: Enable Continuous Integration and Deployment With Devops Approach
Automating Network With Ansible and Cisco NSO: Enable Continuous Integration and Deployment With Devops Approach
Cisco NSO
Enable Continuous Integration and Deployment with Devops Approach
RED HAT ANSIBLE TOWER
Scale + operationalize your automation
Playbooks
Ansible NSO
Infrastructure teams:
• Owns lifecycle of network services
Hybrid Network
Applicable Cisco NSO Features
Ansible • NSO provides a full CRUD
Playbook
Playbook
Playbook
interface
• Create – easy
NSO module
• Update – hard
NSO
• Transactions – either stuff entirely
YANG
happens or no stuff happens
CDB YANG
• Model-based (YANG) so clients can
fetch and validate payloads
Hybrid Network
Three Ansible Modules for Cisco NSO
• The nso_verify module fetches data from NSO, compares with data in
the task and reports any violations
• The nso_action module performs RPCs on NSO (e.g. check-sync) and
validates the output
• The nso_config module is used to create and delete instance data in NSO
Module Commonality
• YAML data encoding for all Ansible features
• YAML encoding is straight translation from the JSON data structures natively
provided by NSO, e.g:
• curl -H "Accept: application/yang-data+json" \
http://localhost:8080/restconf/data/devices/ | json2yaml
• Input data is runtime validated against applicable subset of NSO YANG
modules
Value of Ansible Tower + Cisco NSO
• Single Ansible module leveraging • Gain immediate control over the
NSO to support 70+ vendors entire network from data center to
across domains CPE
• Integrated YANG-support for • Significantly reduce the amount of
model-driven configuration time spent testing configuration
validation changes
• Full rollback capabilities across • Reduce fallouts requiring manual
vendors and device types intervention to a minimum