Automation · Cisco Automation
YANG
Cheat sheet · https://pcornel.dk/topic.php?topic=5643
Answer
YANG is a data modelling language that defines the structure of device configuration and state. Cisco supports native and OpenConfig models, used through NETCONF, RESTCONF and gNMI.
Remember
- Native and OpenConfig models.
- Used by NETCONF, RESTCONF and gNMI.
- Check model support per release.
First checks
show netconf-yang datastores— datastores- YANG Suite / pyang exploration — models
- Cisco-IOS-XE-native vs openconfig — model choice
Verify in this order
YANG model → payload → device
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5643