Automation · YANG
Data Types
Cheat sheet · https://pcornel.dk/topic.php?topic=5634
Answer
YANG data types define allowed values for leafs, such as string, uint32, boolean, enumeration, ip-address and typedefs with ranges and patterns, so devices can validate input.
Remember
- Types include string, uint32, enumeration and ip-address.
- Ranges and patterns restrict values.
- Devices reject invalid values.
First checks
- Type definitions (typedef, enumeration, union, identityref) — types
- Patterns and ranges — constraints
- Identityref prefixes in JSON — module:identity
Verify in this order
value → YANG type check → accepted/rejected
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=5634