Open mailravi02 opened 5 years ago
I have attached other invalid enum values generated by ygot Invalid_enums.txt
@robshakir I believe this is intentional in order to give 0 to UNSET? There is no need for actually using the values since the name can be used?
I believe that we do not respect the value
that is used in the YANG file - and generally use the 0
value to be default (UNSET
if there is no specified default).
We could make this change - but it'll need to be flag-protected again since it'll change the validity of existing generated protos.
I used ygot to convert openconfig-interfaces.yang to proto file. The value of the enum Operstatus was not properly generated by ygot. The same enum issue was observed in few other modules like lacp etc
Generated enum by ygot:
Enum in yang: