SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
Automate | Orchestrate | Remediate
Getting Started with YANG
Yet Another Next Generation ...
What
is
YANG?
Data modeling language for the NETCONF
(network configuration protocol)
to model both configuration data as well as state data of network
elements
to define the format of event notifications emitted by network
elements
define the signature of remote procedure calls that can be
invoked on network elements via the NETCONF protocol
Some
history
SNMP was the first widely used network management protocol
SNMP based on the SMI (Structure of Management Information)
language had limitations wrt configuration management of network
elements
Lack of support for simple things like backup-and-restore of element
configuration
No concept of transactions (single- or multibox)
Many inherent limitations in SMI (e.g. label length)
Data modelling limitations for NETCONF led to the creation of a new
standard and YANG was adopted
SMIng (SMI v3.0) was the basis of YANG
The YANG language v1.0 was finalized in Oct 2010 by IETF NETCONF Data
Modeling Language Working Group (NETMOD), and is defined in RFC
6020
Version 1.1 is now being discussed by IETF
YANG
features
Human readable, and easy to learn representation
Hierarchical configuration data models
Reusable types and groupings (structured types)
Extensibility through augmentation mechanisms
Supports definition of operations (RPCs)
Formal constraints for configuration validation
Data modularity through modules and sub-modules
Well defined versioning rules
YANGin the NETCONF context
Some YANG
language
capabilities
Organization – Leaf, leaf-list, container, lists, grouping, choice
Data model structure – Module, submodule, augment, if-feature, when
Constraints – Must, unique, min-elements, max-elements, mandatory
Data types – Many built-in types, sub-typing, restrictions
Reusable groupings – grouping allows collections of nodes to be reused
augments inserts nodes into an existing hierarchy so they can augment
existing YANG modules, e.g. a standard module where the
implementation provides additional vendor specific data/service
deviations override nodes in an existing hierarchy so they can deviate from
existing YANG modules, e.g. a standard module where the
implementation cannot provide the data/service for a particular node
“rpc” statement defines methods, input and output parameters
YANG YAML RAML XML
Synonym Yet Another Next Generation YAML Ain't Markup Language Restful API Modeling Language eXtensible Markup Language
Purpose Config via NETCONF
object data serialization for
readability To describe REStful APIs To define structured data textually
Benefits
Easier to maintain configuration for
network devices Human readable data definition
Faster, easier and reusable API
definition
Better than proprietary binary data
formats
Configuration Support Yes No No Yes, but not easy
Transactions support Yes No No Yes, but not easy
Transport Independent No No Independent
Preceded by SMI v3 JSON YAML 1.2 -
Used in
Data modelling for networks.
Used in projects like OpenDayLight
Variety of projects esp in python
world for text representation of
object data. Eg.Openstack
Generating API documentation
and stubs for the server and
client
Where transport independence is
required along with textual data
definition
Comparison Matrix
Sample YANG
module acme-system {
namespace "http://acme.example.com/system";
prefix "acme”;
organization "ACME Inc.”;
contact "joe@acme.example.com";
description "The module for entities implementing the ACME system.”;
revision 2007-11-05 { description "Initial revision.”; }
container system {
leaf host-name {
type string;
description "Hostname for this system”;
}
}
}
YANG
promoters
Juniper brought XML-based configuration for NETCONF to the table
Tail-f (now acquired by Cisco) pioneered YANG
Ericsson helped in the adoption of YANG by helping it become a standard
Some enterprises that have provided YANG support in their offerings include:
Brocade
Huawei
Edgeware
Yuma
Oracle
Some YANG
supported
devices
1. Brocade - VCS Fabric Switches
2. Alaxala – Ethernet switches
3. Cisco – IOS 12.4(9)T and later, IOS XE 2.1 and later
4. Ericsson
5. Juniper Networks – JUNOS 7.5 and later
6. RuggedCom – Routers and switches, RX5000 and MX5000
7. Taseon – Intelligent optical networks, TN 320
8. Verivue – Next-generation video distribution, MDX 9020
9. Edgeware – Servers for on-demand TV, WTV-2X
10.Nexor – Messaging Gateways
11.Telco Systems – Carrier Ethernet Multiservice Aggregation, T-Metro 7224
Resources
https://en.wikipedia.org/wiki/YANG
http://www.yang-central.org/
https://www.youtube.com/watch?v=AdIcYrz3AjU
Thank
You
Contact
Email: Sabapathy@cloudenablers.com
dvinod@cloudenablers.com
LinkedIn: http://in.linkedin.com/in/arsabapathy
Twitter: https://twitter.com/arsabapathy

More Related Content

PPTX
ECI UTC Webinar MPLS-TP Value for Utilities-dec 2015
PPTX
NETCONF YANG tutorial
PDF
VXLAN BGP EVPN: Technology Building Blocks
PPTX
Wireshark
PPT
Contiki IoT simulation
PDF
Segment Routing Lab
PPTX
Module 1: ConfD Technical Introduction
ECI UTC Webinar MPLS-TP Value for Utilities-dec 2015
NETCONF YANG tutorial
VXLAN BGP EVPN: Technology Building Blocks
Wireshark
Contiki IoT simulation
Segment Routing Lab
Module 1: ConfD Technical Introduction

What's hot (20)

PDF
The linux networking architecture
PPTX
Open shortest path first (ospf)
PPT
OpenFlow tutorial
PDF
Bidirectional Forwarding Detection (BFD)
PPTX
Software-Defined Networking(SDN):A New Approach to Networking
PPT
Device tree support on arm linux
PDF
Syslog Protocols
PPTX
Ppt of routing protocols
PDF
An Introduction to OpenStack
PDF
BKK16-110 A Gentle Introduction to Trusted Execution and OP-TEE
PPTX
OpenvSwitch Deep Dive
PDF
Ethernet Frames Explained
PPTX
Tcp IP Model
PDF
Ether channel fundamentals
PDF
Hands on with CoAP and Californium
PPTX
VXLAN
The linux networking architecture
Open shortest path first (ospf)
OpenFlow tutorial
Bidirectional Forwarding Detection (BFD)
Software-Defined Networking(SDN):A New Approach to Networking
Device tree support on arm linux
Syslog Protocols
Ppt of routing protocols
An Introduction to OpenStack
BKK16-110 A Gentle Introduction to Trusted Execution and OP-TEE
OpenvSwitch Deep Dive
Ethernet Frames Explained
Tcp IP Model
Ether channel fundamentals
Hands on with CoAP and Californium
VXLAN
Ad

Viewers also liked (7)

PPTX
Netconf et Yang
PDF
Open source policy open daylight and opflex
PPTX
OpenFlow Switch Management using NETCONF and YANG
PPTX
ネットワーク機器のAPIあれこれ入門 (NetOpsCoding#2)
PPTX
Deploying OpenStack with Cisco Networking, Compute and Storage
PPTX
DEVNET-1152 OpenDaylight YANG Model Overview and Tools
PDF
Agile OpenStack Networking with Cisco Solutions
Netconf et Yang
Open source policy open daylight and opflex
OpenFlow Switch Management using NETCONF and YANG
ネットワーク機器のAPIあれこれ入門 (NetOpsCoding#2)
Deploying OpenStack with Cisco Networking, Compute and Storage
DEVNET-1152 OpenDaylight YANG Model Overview and Tools
Agile OpenStack Networking with Cisco Solutions
Ad

Similar to Getting started with YANG (20)

PPTX
YANG (哪)
PPTX
A 30-minute Introduction to NETCONF and YANG
PPTX
Learning netconf yang from scratch
PDF
Introduction to YANG data models and their use in OpenDaylight: an overview
PDF
Introduction to Data Models & Cisco's NextGen Device Level APIs: an overview
PPTX
IoT Heaps 3
PDF
SDN and metrics from the SDOs
PPTX
Module 6: YANG Tutorial - part 2
PPTX
IoT System Management ppt SNMP simple network
PDF
Data models-and-automation-jp
PPTX
OpenDaylight and YANG
PPTX
TIAD 2016 : Network automation with Ansible and OpenConfig/YANG
PPTX
Dynamic Service Configuration and Automated Network Configuration with NETCON...
PPTX
Module 2: Why NETCONF and YANG
PPTX
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIs
PDF
Yang in OpenDaylight
PDF
Yang in ODL by Jan Medved
PPTX
Module 3: NETCONF and YANG Concepts
PPTX
ietf115-network-telemetry-data-mesh-challenges.pptx
PDF
SDN in the Management Plane: OpenConfig and Streaming Telemetry
YANG (哪)
A 30-minute Introduction to NETCONF and YANG
Learning netconf yang from scratch
Introduction to YANG data models and their use in OpenDaylight: an overview
Introduction to Data Models & Cisco's NextGen Device Level APIs: an overview
IoT Heaps 3
SDN and metrics from the SDOs
Module 6: YANG Tutorial - part 2
IoT System Management ppt SNMP simple network
Data models-and-automation-jp
OpenDaylight and YANG
TIAD 2016 : Network automation with Ansible and OpenConfig/YANG
Dynamic Service Configuration and Automated Network Configuration with NETCON...
Module 2: Why NETCONF and YANG
DEVNET-2005 Using the Cisco Open SDN Controller RESTCONF APIs
Yang in OpenDaylight
Yang in ODL by Jan Medved
Module 3: NETCONF and YANG Concepts
ietf115-network-telemetry-data-mesh-challenges.pptx
SDN in the Management Plane: OpenConfig and Streaming Telemetry

More from CoreStack (11)

PDF
How hybrid/multi-cloud governance platform benefits your cloud strategy
PPTX
Corestack Multi-Cloud Management
PPTX
Cloudenablers profile
PPTX
Schedule based network orchestration using opendaylight
PPTX
Accelerating Devops using Corestack
PPTX
Introduction to Ansible
PPTX
Introduction to SDN and NFV
PDF
Cloudenablers startup deck
PPTX
Openstack heat & How Autoscaling works
PPSX
Federation of OpenStack clouds
PPSX
Extending Openstack Horizon for multi cloud management
How hybrid/multi-cloud governance platform benefits your cloud strategy
Corestack Multi-Cloud Management
Cloudenablers profile
Schedule based network orchestration using opendaylight
Accelerating Devops using Corestack
Introduction to Ansible
Introduction to SDN and NFV
Cloudenablers startup deck
Openstack heat & How Autoscaling works
Federation of OpenStack clouds
Extending Openstack Horizon for multi cloud management

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Monthly Chronicles - July 2025
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf

Getting started with YANG

  • 1. Automate | Orchestrate | Remediate Getting Started with YANG Yet Another Next Generation ...
  • 2. What is YANG? Data modeling language for the NETCONF (network configuration protocol) to model both configuration data as well as state data of network elements to define the format of event notifications emitted by network elements define the signature of remote procedure calls that can be invoked on network elements via the NETCONF protocol
  • 3. Some history SNMP was the first widely used network management protocol SNMP based on the SMI (Structure of Management Information) language had limitations wrt configuration management of network elements Lack of support for simple things like backup-and-restore of element configuration No concept of transactions (single- or multibox) Many inherent limitations in SMI (e.g. label length) Data modelling limitations for NETCONF led to the creation of a new standard and YANG was adopted SMIng (SMI v3.0) was the basis of YANG The YANG language v1.0 was finalized in Oct 2010 by IETF NETCONF Data Modeling Language Working Group (NETMOD), and is defined in RFC 6020 Version 1.1 is now being discussed by IETF
  • 4. YANG features Human readable, and easy to learn representation Hierarchical configuration data models Reusable types and groupings (structured types) Extensibility through augmentation mechanisms Supports definition of operations (RPCs) Formal constraints for configuration validation Data modularity through modules and sub-modules Well defined versioning rules
  • 6. Some YANG language capabilities Organization – Leaf, leaf-list, container, lists, grouping, choice Data model structure – Module, submodule, augment, if-feature, when Constraints – Must, unique, min-elements, max-elements, mandatory Data types – Many built-in types, sub-typing, restrictions Reusable groupings – grouping allows collections of nodes to be reused augments inserts nodes into an existing hierarchy so they can augment existing YANG modules, e.g. a standard module where the implementation provides additional vendor specific data/service deviations override nodes in an existing hierarchy so they can deviate from existing YANG modules, e.g. a standard module where the implementation cannot provide the data/service for a particular node “rpc” statement defines methods, input and output parameters
  • 7. YANG YAML RAML XML Synonym Yet Another Next Generation YAML Ain't Markup Language Restful API Modeling Language eXtensible Markup Language Purpose Config via NETCONF object data serialization for readability To describe REStful APIs To define structured data textually Benefits Easier to maintain configuration for network devices Human readable data definition Faster, easier and reusable API definition Better than proprietary binary data formats Configuration Support Yes No No Yes, but not easy Transactions support Yes No No Yes, but not easy Transport Independent No No Independent Preceded by SMI v3 JSON YAML 1.2 - Used in Data modelling for networks. Used in projects like OpenDayLight Variety of projects esp in python world for text representation of object data. Eg.Openstack Generating API documentation and stubs for the server and client Where transport independence is required along with textual data definition Comparison Matrix
  • 8. Sample YANG module acme-system { namespace "http://acme.example.com/system"; prefix "acme”; organization "ACME Inc.”; contact "joe@acme.example.com"; description "The module for entities implementing the ACME system.”; revision 2007-11-05 { description "Initial revision.”; } container system { leaf host-name { type string; description "Hostname for this system”; } } }
  • 9. YANG promoters Juniper brought XML-based configuration for NETCONF to the table Tail-f (now acquired by Cisco) pioneered YANG Ericsson helped in the adoption of YANG by helping it become a standard Some enterprises that have provided YANG support in their offerings include: Brocade Huawei Edgeware Yuma Oracle
  • 10. Some YANG supported devices 1. Brocade - VCS Fabric Switches 2. Alaxala – Ethernet switches 3. Cisco – IOS 12.4(9)T and later, IOS XE 2.1 and later 4. Ericsson 5. Juniper Networks – JUNOS 7.5 and later 6. RuggedCom – Routers and switches, RX5000 and MX5000 7. Taseon – Intelligent optical networks, TN 320 8. Verivue – Next-generation video distribution, MDX 9020 9. Edgeware – Servers for on-demand TV, WTV-2X 10.Nexor – Messaging Gateways 11.Telco Systems – Carrier Ethernet Multiservice Aggregation, T-Metro 7224