Chapter 3. YANG Explained

This chapter covers

  • What a YANG module looks like and what it contains

  • Building a simple YANG module, then extending it

  • How to describe tabular data in YANG

  • Defining actions, RPCs, and notifications

  • The fundamental difference between configuration and operational data

  • Why and how to ensure data is valid using constraints of many different types

  • Modeling data that is only relevant sometimes

  • Properly navigating with YANG pointers, using XPath

  • Augmenting YANG modules, evolving them over time

  • Network Management Datastore Architecture

Introduction

This chapter takes you on a journey to build a real, usable YANG model. This is done in stages with different themes, building up a more and more comprehensive model. Each stage ...

Get Network Programmability with YANG: The Structure of Network Automation with YANG, NETCONF, RESTCONF, and gNMI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.