Open Baalajee-S opened 10 months ago
Hi Baalajee, your proposal makes sense. It would be a breaking change but it conforms to YANG's specs better.
The entrypoint to changing this would be here: https://github.com/openconfig/ygot/blob/f6d9cff4bdcf98553af92a5fef4932cdbc9e8444/genutil/common.go#L267-L286
Since we're maintaining ygot on a best-effort basis, I can't give any estimates on when this can be done, but you're welcome to contribute and I'd be happy to give hints and code review.
Doing this behind a flag would solve the backwards incompatibility issues
at least initially. Some care needs to be taken with what the naming of the
oneof
is -- but this does seem reasonable. It wasn't something I focused
on when implementing this because OpenConfig doesn't use choice
/case
.
I'm also open to helping review a contribution here.
r.
On Thu, Jan 11, 2024 at 10:45 AM Wen Bo Li @.***> wrote:
Hi Baalajee, your proposal makes sense. It would be a breaking change but it conforms to YANG's specs better.
The entrypoint to changing this would be here:
Since we're maintaining ygot on a best-effort basis, I can't give any estimates on when this can be done, but you're welcome to contribute and I'd be happy to give hints and code review.
— Reply to this email directly, view it on GitHub https://github.com/openconfig/ygot/issues/948#issuecomment-1887757567, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABE43VOVAOW2MLANR7RG5GDYOAXONAVCNFSM6AAAAABBWU72VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXG42TONJWG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
--
robjs VRTS
TZ: Pacific (America/Los_Angeles) Desk: SFO-SPE
Please do not feel obligated to reply outside your working hours!
What is now proved was once only imagined - William Blake.
Input YANG file:
Output proto file:
Should the generated proto be?