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

Option to include prefix in yang patch #1662

Open
srikanthsubbaramu opened this issue Nov 4, 2024 · 1 comment
Open

Option to include prefix in yang patch #1662

srikanthsubbaramu opened this issue Nov 4, 2024 · 1 comment
Labels
is:question Issue is actually a question.

Comments

@srikanthsubbaramu
Copy link

Hi Michal,

Thank you for the enhancement on
#1657

But on yangpatch we receive, we notice that only module is included in target, we are using ydk to map the patch for adopting,

currently we see target is printed like
/_3gpp-common-managed-element:ManagedElement[id='100']/_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction[id='100']/_3gpp-nr-nrm-nrcellcu:NRCellCU[id='18']

But we wanted something with prefix with namespace , so it could easily be parsed

mapping to above, it would be like
/urn:3gpp:sa5:_3gpp-common-managed-element:ManagedElement[id='100]/urn:3gpp:sa5:_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction[id='100']/urn:3gpp:sa5:_3gpp-nr-nrm-nrcellcu:NRCellCU[id='10']

Need to understand if this can be enabled via any option in establish-push subscription.

Thanks,
Srikanth

@michalvasko
Copy link
Member

In my experience, using module names is the easiest XPath to parse. In any case, the format cannot be changed without directly changing the code but you can easily get the mode namespaces if you just find the module struct lys_module based on its name and use its ns member.

@michalvasko michalvasko added the is:question Issue is actually a question. label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants