Wen Bo Li

Results 166 comments of Wen Bo Li

> That sounds great to me :-) > > Do we know all of the callers of `generator.go` that are doing path struct generation today? I'm not sure that we...

ygot currently doesn't support anyxml nodes, but these nodes should be ignored rather than erroring out.

I'm not quite understanding the issue, you mean the intervening structs are not being initialized? Would supplying `&ytypes.InitMissingElements{}` as a parameter to `SetNode` as a `SetNodeOpt` achieve what you're trying...

This was a behaviour that was explicitly fixed by https://github.com/openconfig/ygot/pull/595 wherein we don't want `nil` to actually mean the zero value of the leaf. If you want the previous behaviour...

Sorry I don't quite recall what I intended so I'll restart. I can reproduce this issue, where duplicated list entries in the JSON just overwrite previous ones. I'm not sure...

@robshakir can probably give a better answer here, but I will try to answer. I don't think there is support for compliant JSON marshalling from protos. I'm guessing that you...

gnxi-simulators-master seems to be using an older version of ygot right now, so if you upgraded to the latest ygot it may break. If you really need the latest ygot...

I'm not sure if I understood your question, it sounds like you're asking a separate issue of how to add new modules to the generated code? If so you can...

Unfortunately I'm not familiar with the "gnxi-simulators" repo. However, from your reference it looks like they're just calling generator.go: https://github.com/onosproject/gnxi-simulators/blob/afca416f49d51d10e47e51e07bf90e33faa711f3/pkg/gnmi/modeldata/gostruct/command.sh So I think you can just add the module as...

Just took a cursory look, it looks like JSON unmarshalling doesn't support `instance-identifier`. I'm not familiar with this so it might take me some time to figure this out. @robshakir...