automating your network with ansible and cisco nso...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu...

34
October 12, 2017 John Malzahn – Host, Senior Manager, Cloud and Virtualization Solutions Marketing, Cisco Systems Carl Moberg – Technical Director, Cisco Systems Andrius Benokraitis – Principal Product Manager, Networking, Ansible by Red Hat Ian Hood – Chief Technologist, Global Telco, Red Hat Automating Your Network with Ansible and Cisco NSO Enable Continuous Integration and Deployment with Zero Downtime

Upload: others

Post on 13-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

October 12, 2017

John Malzahn – Host, Senior Manager, Cloud and Virtualization Solutions Marketing, Cisco Systems

Carl Moberg – Technical Director, Cisco Systems

Andrius Benokraitis – Principal Product Manager, Networking, Ansible by Red Hat

Ian Hood – Chief Technologist, Global Telco, Red Hat

Automating Your Network with Ansible and Cisco NSO Enable Continuous Integration and Deployment with Zero Downtime

Page 2: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Today’s Presenters

John Malzahn

Senior Manager, Cloud and Virtualization Solutions Marketing

Andrius Benokraitis Principal Product Manager, Networking

Carl Moberg

Technology Director, Cloud and Virtualization Group

Ian Hood

Chief Technologist Global Telco

Cisco Systems Ansible by Red Hat Cisco Systems Red Hat

Page 3: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Agenda

1Red Hat Ansible Automation

2Cisco NSOLifecycle Orchestration

3Better Together:Ansible and Cisco NSO

4 Demo

5 Wrap-up

Page 4: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Automation with Ansible

Page 5: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

No matter where you are on your path to digital transformation, you can

make an impact with automation.

Page 6: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

How are you thinking about management?

What is your automation strategy?

Page 7: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Everyone is talking about

automation

Page 8: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

DEV QA/SECURITY IT OPERATIONSBUSINESS

ANSIBLE IS THE UNIVERSAL LANGUAGE

Page 9: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

RED HAT ANSIBLE TOWER

RED HAT ANSIBLE ENGINE

Scale + operationalize your automation

Support for your Ansible automation

CONTROL KNOWLEDGE DELEGATION

SIMPLE POWERFUL AGENTLESS

FUELED BY AN INNOVATIVE OPEN SOURCE COMMUNITY

Page 10: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Cisco NSOThe Industry Leading Network Automation & Orchestration Platform

Page 11: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Cisco NSO – The Network API

Cisco NSO

Metro and Access WAN Data CenterCPE

• No hard-coded assumptions about:

• Network services• Network architecture• Network devices

• YANG-based data store driving the north- and southbound interfaces

• Southbound multi-protocol support including NETCONF, REST, CLI, SNMP

• Massively scalable architecture deployed in networks with 100k+ devices

Northbound: REST, NETCONF, JSON-RPC, Java, Python, Erlang, CLI, Web UI

Southbound: 70+ vendors across physical and virtual networks

AutomationFrameworks

NetworkEngineers

Page 12: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Monolithic Versioning

Network Device Stack

OS

Applications

Application Config

Config Management

CLI/NETCONF/etc with supporting infrastructure including config master db for inflight changes

In-memory and/or artifacts on disk complicated updates through micro-orchestration

Proprietary applications, lifecycle as integrated product

Non-mainstream (platform HAL, kernel patches, etc), lifecycle as integrated product

High, depends on location in network and service:• Day0/1 on install• Day N for services

Low, as part of maintenance or security

Change RateFeaturesSingle entry point for configuration, operations

Page 13: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

From Devices (ConfD)…

Challenges:• Many different APIs and interfaces

to the north

• Heterogenous environment to the south

• One operation may lead to many activities

Solution includes:• APIs and interfaces driven

by models

• Transaction-engine with flexible rollback

ConfD

CDB

CLI SNMP NETCONF REST

A Mess (OS, Apps)

Subscription-based APIs

Data Models

Data Models

Page 14: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

…to Networks (NSO)

Challenges are very similar, but larger scale, more distributed

So we added some more to the solution:

• Layered models for abstraction

• Mapping between layers

• Adapters for talking different protocols

NSO

CDB

CLI SNMP NETCONF REST

NED NED NEDNED

ServiceModels

DeviceModels

A Mess (the Network)

Page 15: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

So Here We Are – Cisco NSO

Multi-domain Networks

Network Engineering Ops and Provisioning Service Developers

NSO

PackageManager

Service Manager

Device Manager

ESC (VNFM)Device Abstraction

NED NED NEDVNF Lifecycle

ManagerVNF Service Monitoring

CDB

• Model-driven end-to-end

service lifecycle and customer

experience in focus

• Seamless integration

with existing and future

OSS/BSS environment

• Loosely-coupled and modular

architecture leveraging open

APIs and standard protocols

• Orchestration across

multi-domain and multi-layer

for centralized policy

and services across

entire network

Page 16: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

AutomationBetter Together with Ansible + NSO

Page 17: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Reference ArchitecturesSpanning Applications and Networks

Ansible

NSO

App App

Ansible

NSO

App App

Application Centric Connectivity Centric

Playbooks

Playbooks

Page 18: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Ansible Plus Cisco NSO – Better Together

• Ansible uses Playbooks to define named tasks that are executed by the ansible-playbook tool. The tasks use modules to perform activities. The NSO modulesuses the version JSON-RPC API

• NSO uses YANG modules to describe the schema of the data that can be manipulated using JSON-RPC. Clients (in this case an Ansible module) perform operations on the data stored in CDB.

• Easily consumed by native Ansible allows application-centric services to unlock the full value of the network

Red Hat Ansible Tower provides playbook-driven IT and network automation

Cisco NSO provides model-driven service orchestration in hybrid networks

Page 19: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Ansible + Cisco NSO - Roles and Responsibilities

Ansible

NSO

CDB

PlaybookPlaybookPlaybook

Devops teams• Owns lifecycle of playbook

Infrastructure teams:• Owns lifecycle of network services

YANG

JSON-RPC

NSO module

Hybrid Network

YANG becomes contract language between teams across infrastructure cycles:• Requirements from apps device

provided in YAML-format• New services published by infra

team as REST-interface update

Page 20: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• NSO provides a full CRUD interface

• Create – easy

• Update – hard

• Delete – very hard

• Transactions – either stuff entirely happens or no stuff happens

• Model-based (YANG) so clients can fetch and validate payloads

Applicable Cisco NSO Features

Ansible

NSO

CDB

PlaybookPlaybookPlaybook

YANG

JSON-RPC

NSO module

Hybrid Network

YANG

Page 21: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• 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

Three Ansible Modules for Cisco NSO

Page 22: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• 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

Module Commonality

Page 23: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• Single Ansible module leveraging NSO to support 70+ vendors across domains

• Integrated YANG-support for model-driven configuration validation

• Full rollback capabilities across vendors and device types

Value of Ansible Tower + Cisco NSO

• Gain immediate control over the entire network from data center to CPE

• Significantly reduce the amount of time spent testing configuration changes

• Reduce fallouts requiring manual intervention to a minimum

Page 24: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Automating Your Infrastructure with Ansible Tower and Cisco NSO

Page 25: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

AUTOMATION >> Ansible + Cisco NSO Use Cases

NFV / SDN

Network Automation

Continuous Compliance

IoT

Page 26: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Cisco NSO

RHEL HOST

Automating Mobile Services – vIMS / vEPC Use Cases

Service Provider Cloud

Customers

• Service Orchestration

• SDN / Network Automation

• RHOSP Deployment Automation

• Ceph Storage Automation

• VNF / Workload Placement

Storage NetworkCompute

NFVI

Open APIs

Orchestration/Automation

vEPC vIMS vPCRFvSMS

RHEL KVM

RH OSP

RH Storage OVS/DPDK

Ansible Tower

Mobile Devices

Business Location / Venues

CloudForms Cisco NSO

Service Provider Cloud

Page 27: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Demo Time!

Page 28: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• Three groups of three routers each, running in netsim (management only, no packets passed)

• Appropriate NEDs loaded to support the router types and protocols

• I’ll use the CLI and REST for manual steps, and Ansible will use the JSON-RPC interface

Demo Setup – Cisco NSO

NSO

CDB

JuniperIOS-XE IOS-XR

XE (CLI) XR (CLI) NETCONF

CLIJSON-

RPCREST

Page 29: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

JSON-RPC

• Three NSO modules interacting with device- and service level abstractions

• A set of example playbooks using the modules

Demo Setup – Ansible

AnsiblePlaybook

PlaybookPlaybooks

NSO Configuration Module

NSO Verification Module

NSO Action Module

Page 30: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Summary

Page 31: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

The Industry’s Broadest Multivendor SupportCisco NEDS + Ansible Modules / Playbooks with Community Innovation

Page 32: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

• Agility Throughout Service Lifecycle

- Strict YANG model-driven solution

- Auto-rendered business logic results in 90% less code

- Effortlessly re-deployment of updated service and device models

- DevOps for differentiation

• Full automation of Applications and Networks

• Robust and Proven in tier-1 Deployments

• Industry’s Broadest Multivendor Support

• Relevant in today’s and tomorrow’s networks

What You GainCisco Network Services Orchestrator + Ansible Tower

Page 33: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru

© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Visit:

www.cisco.com/go/nso

www.redhat.com/ansible

And contact your Cisco and Red Hat account representatives

For more information

Page 34: Automating Your Network with Ansible and Cisco NSO...2fwrehu -rkq 0do]dkq²+rvw 6hqlru 0dqdjhu &orxg dqg 9luwxdol]dwlrq 6roxwlrqv 0dunhwlqj &lvfr 6\vwhpv &duo 0rehuj²7hfkqlfdo 'luhfwru