Exploring the SR OS YANG models

Understand YANG package

Introduction

This article describes the SR OS YANG package that is delivered from Nokia.  


YANG package

Nokia delivers the YANG models in the following directory structure:


YANG
+-- r13
+-- openconfig
+-- nokia-combined
+-- li
+-- ietf


The contents of each directory are as follows:


  • YANG (root) - The location of the Nokia YANG models:  includes models, types and augments
  • YANG/openconfig - The OpenConfig models for integration with SR OS devices
  • YANG/r13 - The pre-Release 16 YANG models (unless you have a specific need for these, their use should be avoided)
  • YANG/nokia-combined - The Nokia YANG models collapsed into two files:  one for configuration and one for state
  • YANG/li - The Nokia YANG models for Lawful Interception (the YANG models for LI will be delivered in all geographic regions whether or not LI is available in SR OS)
  • YANG/ietf - IETF models for NETCONF infrastructure to interwork with SR OS


Enabling models in SR OS

Which YANG models should be used depends on the configuration of the SR OS device:


SR OS Configuration YANG Models
/configure/system/management-interface/yang-modules/base-r13-modules true YANG/r13
/configure/system/management-interface/yang-modules/nokia-modules true YANG
/configure/system/management-interface/yang-modules/nokia-combined-modules true YANG/nokia-combined