Pcornel
Automation · YANG

YANG Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=5628

Back to the Topic

Answer

YANG fundamentals: YANG (RFC 7950) models network configuration and state as a tree of containers, lists and leafs, used by NETCONF, RESTCONF and gNMI so tools and devices share one data definition.

Remember

  • YANG models configuration and state as a tree.
  • NETCONF, RESTCONF and gNMI use it.
  • Tools and devices share one data definition.

First checks

  • pyang -f tree ietf-interfaces.yang — tree view
  • config true/false nodes — config vs state
  • Namespaces and prefixes — identification

Verify in this order

module → schema tree → instance data

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5628

Confirmation

Confirm action

Continue?