You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 different sets of yang files, which are converted into go structs, both having parent node as Device. But when i tried to merge the go structs using ygot.MergeStructs() API, getting error as cannot merge structs that are not of matching types, *openconfig.Device != *openconfig.Device
For Example:
type Device struct {
abc *Testabc_abc `path:"abc" module:"test-abc"`
}
type Device struct {
xyz *Testxyz_xyz `path:"xyz" module:"test-xyz"`
}
want to merge these 2 ygot structs into single tree, where both abc and xyz are under single Device struct
Is there a way or an API, which can be used to merge 2 generated go structs.
Hi,
I have 2 different sets of yang files, which are converted into go structs, both having parent node as Device. But when i tried to merge the go structs using ygot.MergeStructs() API, getting error as
cannot merge structs that are not of matching types, *openconfig.Device != *openconfig.Device
For Example:
want to merge these 2 ygot structs into single tree, where both abc and xyz are under single Device struct
Is there a way or an API, which can be used to merge 2 generated go structs.
TestCode :
Thanks,
Deepak
The text was updated successfully, but these errors were encountered: