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

Invalid yang in sflow.yang #37

Open
kot-begemot-uk opened this issue Sep 21, 2018 · 2 comments
Open

Invalid yang in sflow.yang #37

kot-begemot-uk opened this issue Sep 21, 2018 · 2 comments
Labels

Comments

@kot-begemot-uk
Copy link

The list entry contains both a choice which has an alternative called ifindex and a leaf which is called ifindex.

One of these has to go. Either the choice has to be reduced to a single (optional) leaf for name or the leaf for ifindex has to be removed so that the choice can provide either name or ifindex.

@atanu-mandal
Copy link
Contributor

The YANG "status" keyword is mentioned as "deprecated" inside the leaf definition of ifindex. To write a fresh application on top of this the user should use the "choice" option . The leaf node is kept for backward compatibility so that the user/customer applications written for Release N still work for subsequent releases N+1 and N+2, where N is an OPX major release number.
Hope that helps.

@kot-begemot-uk
Copy link
Author

It fails validation in half of the validators out there. Starting with pyang.

While I understand the intention, the standard validator used by IETF for compliance to the RFC declares it invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants