skip to content

YANG

Modules, containers, lists and typed leaves describe a device's configuration and state, whatever protocol carries them. Automation questions usually land on the model, not the transport.

on this pageshow

explore

questions

page 2 of 2

Why can a YANG union, such as an interface leafref with an enumeration fallback, validate a value differently from what its author intended?

level: seniorimportance: nice to knowfreq 6%

basics

~20 s

A union tries its member types in order and keeps the first that accepts the value, so an early broad member hides later ones, XML and JSON can pick different members, and an orphaned leafref value is retried against later members.

open as a page

showing 31–31 of 31