-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Schema Tree public #895
Conversation
@wenovus Please review. |
@Ankur19 Does https://github.com/openconfig/goyang/blob/1d9b70a64cbe8e0ba42f95ab5c4e1ea81ac17c19/pkg/yang/entry.go#L1310 work? I'm assuming you're working with goyang structs so if the use case is not ygot-specific then goyang should be satisfying the need. |
Let me check. Thanks for the pointer. |
The e.g. /oc-netinst:network-instances/oc-netinst:network-instance/oc-netinst:config/oc-netinst:name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exporting this functionality looks fine to me since it provides handling that goyang's Entry.Find doesn't have.
Can you put it in a separate package called yangschema
? Then we can rename the type to yangschema.Tree
.
Done! |
I would like to build the
SchemaTree
using yang Entries and then use theResolveLeafRefTarget
method to calculate the actual data type of aleafref
.