Skip to content
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

leafref path and node #52

Open
li-pingmao opened this issue Sep 30, 2022 · 0 comments
Open

leafref path and node #52

li-pingmao opened this issue Sep 30, 2022 · 0 comments

Comments

@li-pingmao
Copy link

li-pingmao commented Sep 30, 2022

Is there a nAPI to get the SNode the leafref points to? Or the schema xpath of what the leafref points to?

For example:
leaf vlanid {
type leafref {
path ../../../VLAN/VLAN_LIST/vlanid;
}
}

the existing leafref_path() will get "../../../VLAN/VLAN_LIST/vlanid",
can we have APIs:

  1. returns the real xpath of this leafref path, so we can use the returned path to get the SNode
  2. an API to return the SNode this leafref points to?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant