Tom writes: > If by 'value' that means the value substatement of the 'enum' YANG > statement, then that may not give you what you expect. What goes on > the wire is the text name string. If a number is displayed to a user, > then it is because the local software had deduced one, perhaps from a > YANG module. The text string is the authoritative definition, the > value conveys nothing. If you want a value, then you need a different > type of leaf like an integer. (In other languages, the binding of text > string to value is part of the specification of an enumeration - not in > YANG).
yes, it's a text string for XML and JSON, this isn't the case for YANG-CBOR if a value is set. -- Michael Richardson <mcr+i...@sandelman.ca> . o O ( IPv6 IøT consulting ) Sandelman Software Works Inc, Ottawa and Worldwide
signature.asc
Description: PGP signature
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod