Automation · YANG
Configuration Data
Cheat sheet · https://pcornel.dk/topic.php?topic=5635
Answer
Configuration data in YANG is the writable part of a model, marked config true, such as interface descriptions and IP addresses, which NETCONF and RESTCONF can change.
Remember
- config true nodes are writable.
- NETCONF and RESTCONF can change them.
- They persist in datastores.
First checks
- config true nodes — configuration
- get-config / GET ?content=config — read config
- edit-config / PUT/PATCH — write config
Commands
yanglint <model.yang> <data.json>- Read-only/validation observation for syntax/schema validity of the selected data instance against the selected YANG mod…
Verify in this order
config nodes → datastore → device behaviour
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=5635