YANG Tips
YANG language usage tips
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
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
This YANG definition is broken: leaf name {
type union {
type vlan-id-type;
type string;
type uint16;
...
Mon, 28 Feb, 2022 at 2:26 PM
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 are used to automate the validation of complicated system configuration. All YANG constraints must be validated before a configuration chan...
Mon, 21 Nov, 2022 at 4:13 PM
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...
Thu, 24 Feb, 2022 at 7:52 PM
YANG metadata can be defined with the "structure" extension in RFC 8791 Like regular YANG data nodes except they are not part of any datasto...
Tue, 30 Nov, 2021 at 4:24 PM