Wen Bo Li
Wen Bo Li
Here I would be expecting ygot to accept the string "A", "B", "C", or "D" since these seem to be the enum names in YANG. How did you get `2`...
In your code you have ```go err := xml.Unmarshal([]byte(xmlData), &gostruct) ``` I'm not quite sure where the `xml` library is, nor where `xmlData` comes from or why those two things...
Since identities are used to form a hierarchical subclass relationship with a single base identity, in practice (esp. with the OpenConfig YANG models) they effectively form a enumeration structure, where...
@earies for comments
Enums are marshalled as strings per RFC7951: https://datatracker.ietf.org/doc/html/rfc7951#section-6.4
Can you provide your YANG schema as well as a reproducing example? I have to go for today but I can take a look with those information when I get...