First page Back Continue Last page Overview Graphics
YANG Instance Identifiers
All instance IDs can be specified with Xpath:
- Xpath absolute path expression
The path from the conceptual <config> root to the object instance is the identifier value
- a canonical format conversion algorithm is needed
- a canonical instance order algorithm is needed
Example:
- # ID for address (2nd in unnamed list)
/interfaces/interface[name=‘eth0’]/addresses/address[2]
- # ID for phone
/foo/bar[x=3][y=4]/baz/acme-stuff[name=‘fred’]/phone