Cisco DevNet Series - Networking Academy

Transcription

Cisco DevNet SeriesIntro to Software &ProgrammabilityIntro to CodingIntent Networks: How to be aNetwork Engineer in aProgrammable AgeFast Lane: Where Code (Apple) MeetsNetwork Infrastructure (Cisco)APIs with Cisco SparkNetwork Programmability & APIC-EM– Today!Network Programmability withYANG/NETCONF/RESTCONF– March 15All Series Details can be Found @ http://bit.ly/DevNetSeries 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential1

Network Programmability& APIC-EMCisco DevNet Webinar SeriesSpeaker: Matt DeNapoli DevNet Developer EvangelistHostess: Kara Sullivan Cisco Networking Academy18 January 2018

Use the Q and A panel to askquestions. Use the Chat panel toWelcome to the6th session of theCisco DevNetwebinar seriescommunicate with attendeesand panelists. A link to a recording of thesession will be sent to allregistered attendees. Please take the feedbacksurvey at the end of thewebinar. 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential3

Cisco DevNet SeriesIntro to Software &ProgrammabilityIntro to CodingIntent Networks: How to be aNetwork Engineer in aProgrammable AgeFast Lane: Where Code (Apple) MeetsNetwork Infrastructure (Cisco)APIs with Cisco SparkNetwork Programmability & APIC-EMNetwork Programmability withYANG/NETCONF/RESTCONF– March 15All Series Details can be Found @ http://bit.ly/DevNetSeries 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential4

Joining YouToday:Matt DenapoliDeveloper EvangelistDevNet, CiscoRecommended knowledge to follow along today: CCNA2 Basic Programming Skills 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential5

Module 03Network Programmabilityand APIC-EMMatthew DeNapoliDevNet Developer Evangelist

s/devnet-beginner Networking 101 Basics and Software Defined -the-basics/step/1 What is Network -02-what-is-networkprog/step/1 Controller Basics and roller-basics-andapic-em/step/1 APIC-EM Applications and Use m-applications-anduse-cases/step/1 Coding 101 - REST API basics-ga/step/1

s/devnet-beginner APIC-EM APIs with Python: Part I - The /step/1 APIC-EM APIs with Python: Part II - Path race/step/1 APIC-EM APIs with Python: Part III - Policy step/1

Network Programmability,DNA, Controllers

Digital Network Architecture

What's New: DNA Innovations

Introduction to APIC-EM

APIC-EM - Platform ArchitectureAPIC-EMApplicationsNetwork PnPIWANPath TraceNetwork InventoryAdvanced Topology VisualizerAPIC-EMApplicationsAPIC-EM ControllerNorthbound REST APIs gyServicesData AccessServicePolicy AnalysisNetwork PnPElastic Service ervicesAddressesScale Outand HARequirements

APIC-EM – Log in

APIC-EM Device Inventory

APIC-EM Topology

APIC-EM : Path Trace

APIC-EM REST APIs

What is so great about REST?Easy to use: In mobile apps In console apps In web appsCisco APIC-EM REST APIs HostsDevicesUsers moreHow does this work?21

How does this work?Request3rd PartyAppResponseGet HostsList of Hosts3rd PartyApp

APIC-EM Example: Get HostApplication Policy Infrastructure Controller (APIC) Enterprise Module (EM)GET http://{APIC-EMController}/api/v1/hostRequest3rd PartyAppList of Hosts returned in JSONResponse23

Anatomy of a REST RequestMethod– GET, POST, PUT, DELETEURL– Example: on– Basic HTTP, OAuth, none, CustomCustom Headers– HTTP Headers– Example: Content-Type: application/jsonRequest Body– JSON or XML containing data needed to complete request24

And what is in the Response?HTTP Status Codes– http://www.w3.org/Protocols/HTTP/HTRESP.html– 200 OK– 201 Created– 500 Internal ErrorHeadersBody– JSON– XML25

Using the API Reference Documentation

Using Postman to get the Service Ticketmethodurl27

Using Postman to get the Service TicketResponse bodyAuthentication Token28

Using Postman to get Network Hosts29

What about authentication? Basic HTTP: The username and password are passed to the server in anencoded string. OAuth: Open standard for HTTP authentication and session management.Creates an access token associated to a specific user that also specifies theuser rights. The token is used to identify the user and rights when making APIscalls in order to verify access and control. Token: A token is created and passed with each API call, but there is nosession management and tracking of clients which simplifies interactionbetween the server and client. APIC-EM uses Token for authentication management.30

Github Collection31

APIC-EM Applications

APIC-EM ApplicationsPlug-and-Play (PnP)The APIC-EM Controller’s PnP (Plug and Play) application delivers on ZTD (ZeroTouch Deployment) for Cisco Enterprise Network routers, switches and wirelesscontrollers.Easy QoSThe APIC-EM Controller’s Easy Quality of Service application provides a simple wayto classify and assign application priority.Intelligent WAN (IWAN) ApplicationThe APIC-EM Controller's Intelligent WAN (IWAN) application automates theconfiguration of advanced IWAN features on Cisco 4000 Series Integrated ServiceRouters.Path TraceThe APIC-EM Controller’s Path Visualization application greatly eases andaccelerates the task of connection troubleshooting.33

Plug and Play

Plug and Play

Plug and Play

Plug and Play

Easy QoS

Easy QoS

Easy QoS

IWAN Plug and Play - The network is used to deploy Cisco 4000 Series Integrated Services Routers(ISRs) in new sites. Centralized policy automation Public-key-infrastructure (PKI) certificate Centralized hybrid WAN management QoS deployment and change of management Network wide visibility and segmentation with Application Visibility and Control (AVC) DMVPN deployment and change of management Cisco Validated Designs based IWAN deployment workflows

PathTrace (Flow Analysis

PathTrace (Flow Analysis)

Path Trace (Flow Analysis)

Path Trace (Flow Analysis)

Path Trace (Flow Analysis)

Path Trace (Flow Analysis)

Path Trace (Flow Analysis)

Path Trace (Flow Analysis)

Get your hands dirty with The Mission!

Wrap-Up

What you learned in this Module Network Programmability APIC-EM APIC-EM Northbound APIs

@CiscoDevNet@CiscoNetAcad

Save the DateNEXT SESSION:Network Programmability withYANG/NETCONF/RESTCONF15 March – 9:00 A.M. PTRegister at: http://bit.ly/DevNetSeries

This is the Digital TransformationSelf-enroll today to learn more @ http://bit.ly/intro2iot 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential55

APIC-EM APIs with Python: Part I - The Basics . Inventory Manager RBAC Policy Analysis Policy Programmer Network PnP Data Access Service Topology Services IWAN Elastic Service Infrastructure APIC-EM . OAuth: Open standard for HTTP authentication and session management.