Wen Bo Li

Results 166 comments of Wen Bo Li

Hi achurak, apologies for the delayed response. I believe you queried `/interfaces/interface` from the device, which correctly returns a JSON list. However, ygot doesn't support unmarshalling directly at the list...

1. Looking more, I think what Cisco has might be reasonable (as this is ambiguous in the gNMI spec), since in general it's possible to specify wildcards in queries, so...

The logic may be added here: https://github.com/openconfig/ygot/blob/4dcc65ef1230778675d989ce9a4d194512974f17/ygot/diff.go#L316C41-L316C41 I think you want to do a if on `util.IsValueStructPtr(ni.FieldValue)`, deal with the `orderedMap` case (it's not relevant), and in a separate case...

Currently the Go-generated code does not respect the YANG enum value and we do not support it. This has been brought up before (https://github.com/openconfig/ygot/issues/286) and the solution would be a...

Some quick tips: * Here is where the enum definition in the IR (intermediate representation) is created https://github.com/openconfig/ygot/blob/4dcc65ef1230778675d989ce9a4d194512974f17/ygen/genir.go#L153-L169 * Here is where the values are assigned: https://github.com/openconfig/ygot/blob/4dcc65ef1230778675d989ce9a4d194512974f17/gogen/goenums.go#L61-L65 See if you...

Interesting, we haven't tested ygot on ARM machines. Go is supposed to have good support for ARM so I'm not sure what's happening here. I would be willing to review...

I see an action that some people are using, I think it might be the same QEMU emulation you're talking about: * https://github.com/actions/runner-images/issues/5631 * https://github.com/marketplace/actions/run-on-architecture

Hi Jonas, 1. Since these are non-OpenConfig models, you will need to set `compress_paths=false` in the generation, as path compression assumes OpenConfig-style YANG which follows certain conventions that the Cisco...

You can experiment with structs_split_files_count to see if that helps with the size of the generated code files: ``` -output_dir=gostructs -structs_split_files_count=10 ``` BuildEmptyTree only instantiates containers, but for list elements...

If you want generated ygot GoStructs to represent two different trees then you would need to generate with both sets of YANG files at the same time.