Pcornel
Automation · YANG

Modules

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

Back to the Topic

Answer

A YANG module is a file defining one model with a name, namespace, prefix, revision and the data nodes, RPCs and notifications it provides, often importing other modules.

Remember

  • A module has name, namespace, prefix and revision.
  • It imports other modules.
  • It defines nodes, RPCs and notifications.

First checks

  • pyang -f tree <module>.yang | head — module contents
  • Module revision date — version
  • Imports/includes — dependencies

Verify in this order

module (namespace, revision) → data definitions

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=5629

Confirmation

Confirm action

Continue?