clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
216 stars 72 forks source link

yang_enum_int_value() fails if no explicit values are assigned to enums #483

Closed pprindeville closed 8 months ago

pprindeville commented 8 months ago

The issue seems to be that yang_enum2valstr() gives up here:

    if ((yval = yang_find(yenum, Y_VALUE, NULL)) == NULL)
        goto done;

but the YANG spec states that values are optional.

pprindeville commented 8 months ago

Confirmed as fixed.