R13 YANG Model Automation

R13 YANG Model Automation

YANG Schema Comparison tool can be integrated with YANG CI pipeline to detect compatibilities of YANG modules update. ONAP can define its own YANG compatibility rules, and if some rules are broken, the errors will be reported.

YANG Compiler can be used to improve the efficiency of YANG development.

Motivation

  • The chain of dependencies for a YANG module may be very long.

  • Schema comparison is very important for YANG lifecycle management.

  • IETF NETMOD WG is developing a draft for YANG schema comparison.

  • Some operators have integrated YANG schema comparison tool into YANG data mesh.

Existing work in ONAP

  1. ONAP Projects use Yang to define APIs : SDNC (Controllers), CCSDK, etc.

  2. Support Yang model in closed loop or model-driven config.

  • SDC onboard yang model.

  • CPS behavior driven by yang model.

  1. Vendor-specific YANG model.

  • PNF Software Upgrade using Yang.

  • ONAP integrate with 3rd VNFM , Controller using YANG.

  1. ONAP use ODL YANG tools as YANG parser and code generation.

Introduction

  • The chain of dependencies for a YANG module may be very long.

  • Schema comparison is very important for YANG lifecycle management.

  • IETF NETMOD WG is developing a draft for YANG schema comparison.

  • Some operators(Swisscom) have integrated YANG schema comparison tool into YANG datamesh.

YANG Compiler

Highlights:

1.Resolve dependencies automatically.

2.Allow user to customize settings for compilation.

3.Allowing customized functions by plugin system(including built-in plugins and extern plugins).

4.Allow user to define the build options.

Benefits:

1.Users need not waste time for looking for dependencies.

2.Users can develop plugins  to implement customized functions.

3.Renovate YANG's release method. YANG publisher MAY only publish their real YANG modules(need not publish import-only YANG modules, YANG compiler can find these.)

 

YANG Schema Comparison

Highlights:

1.Support customized compatibility rules.

2.Integrated with YANG Compiler.

3.Also support standalone application mode.

4.Comply with the update rules of RFC7950.

Benefits:

1.Users can define different compatibility rules for different scenarios.

2.Users can export release notes when a new version of YANG module set is published.

3.Authors and reviewers can check the compatibility result when they are ready to commit a new version of YANG module.

4.Developers can determine the impact of YANG modules update.

 

developement

image-20250808-103543.png