Hands On Exploration of NETCONF and YANG Bryan Byrne, CCIE 25607 (R/S) Technical Solutions Architect Enterprise Networks @bryan25607
Agenda Introduction Module 1 YANG Data Modeling Module 2 Introduction to the NETCONF Protocol Conclusion 3
The Network is No Longer Isolated 4
Model Driven Programmability NETCONF 2006 RFC 4741 (RFC 6241 in 2011) YANG 2010 RFC 6020 RESTCONF 2017 RFC 8040 grpc 2015 OpenSource project by Google Not covered in today s session 5
Transport (Protocol) vs Data (Model) NETCONF RESTCONF grpc YANG 6
YANG Data Modeling
What is a Data Model? Person Gender - male, female, other Height - Feet/Inches or Meters Weight - Pounds or Kilos Hair Color - Brown, Blond, Black, Red, other Eye Color - Brown, Blue, Green, Hazel, other A data model is simply a well understood and agreed upon method to describe "something". As an example, consider this simple "data model" for a person. 8
What might a YANG Data Model describe? 9
YANG Lab Tasks Lab Task 1 Where to Get YANG Models Lab Task 2 Using pyang to View YANG Models Lab Task 3 YANG Augmentation and Deviation Lab Task 4 YANG Data Models 10
Introduction to the NETCONF Protocol
Introducing the NETCONF Protocol Some key details: Initial standard in 2006 with RFC4741 Latest standard is RFC6241 in 2011 Does NOT explicitly define content 12
NETCONF Protocol Stack 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Operations - NETCONF Actions Operation Description <get> <get-config> <edit-config> <copy-config> <delete-config> <commit> <lock> / <unlock> <close-session> <kill-session> Retrieve running configuration and device state information Retrieve all or part of specified configuration data store Loads all or part of a configuration to the specified configuration data store Replace an entire configuration data store with another Delete a configuration data store Copy candidate data store to running data store Lock or unlock the entire configuration data store system Graceful termination of NETCONF session Forced termination of NETCONF session 14
YANG Lab Tasks Lab Task 5 Saying Hello with NETCONF Lab Task 6 Using ncclient to Open a NETCONF Session Lab Task 7 Using ncclient to Retrieve Interface Configuration 15
Wrap Up Lab Task 8 Lab Clean Up 16
Related Sessions Labs Hands-on Exploration of NETCONF and YANG Wednesday Jan. 30 th 9:00 AM Workshop 1 Thursday Jan. 31 st 4:00 PM Workshop 1 DEVWKS-2585 Hands-On Kicking the Tires of RESTCONF Tuesday Jan. 29 th 9:00 AM Workshop 1 Wednesday Jan 30 th 3:00 PM Workshop 1 Lecture BRKDEV-1368 Effectively Understand and Leverage YANG with NETCONF and RESTCONF Model Driven Programmability Thursday Jan. 31 st 11:00 AM Hall 8, Room A106 17
Got more questions? Come find me! brybyrne@cisco.com @bryan25607 http://github.com/brybyrne @CiscoDevNet facebook.com/ciscodevnet/ http://github.com/ciscodevnet 18
Cisco Webex Teams Questions? Use Cisco Webex Teams (formerly Cisco Spark) to chat with the speaker after the session How 1 2 3 4 Find this session in the Cisco Events Mobile App Click Join the Discussion Install Webex Teams or go directly to the team space Enter messages/questions in the team space cs.co/ciscolivebot# 19
Complete your online session survey Please complete your Online Session Survey after each session Complete 4 Session Surveys & the Overall Conference Survey (available from Thursday) to receive your Cisco Live T- shirt All surveys can be completed via the Cisco Events Mobile App or the Communication Stations Don t forget: Cisco Live sessions will be available for viewing on demand after the event at ciscolive.cisco.com 20
Continue Your Education Demos in the Cisco Showcase Walk-in self-paced labs Meet the engineer 1:1 meetings Related sessions 21
Thank you