YANG language usage tips

Why doesn't my simple XPath comparing 2 nodes work?
XPath expressions are used in YANG must and when statements to describe constraints to related data nodes. Comparison of values in XPath is compli...
Mon, 2 Apr, 2018 at 5:56 PM
What is the difference between . and current()?
XPath has many ways to reference and compare data nodes The dot '.' is shorthand for an AbbreviatedStep, and selects  the  context node ...
Tue, 13 Sep, 2016 at 2:18 PM
Defining Union Typedefs
This YANG definition is broken:   leaf name { type union { type vlan-id-type; type string; type uint16; ...
Mon, 2 Apr, 2018 at 5:57 PM
What is the difference between 'when' and 'if-feature'?
The "when" and "if-feature" statements are both used to make an object conditional, but they are very different. The "when"...
Fri, 29 Jun, 2018 at 11:47 AM
YANG Constraints Explained
YANG constraints are used to automate the validation of complicated system configuration. All YANG constraints must be validated before a configuration chan...
Mon, 2 Apr, 2018 at 5:57 PM
How and where to use Schema Node Identifiers?
A schema node identifier is a string that identifies a node in the schema tree. Since the release 18.10 where the server was changed to implement YANG c...
Mon, 29 Apr, 2019 at 11:53 AM