-
Notifications
You must be signed in to change notification settings - Fork 12
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
YANG if-feature does not work in a sub-module if the feature is declared in the module. #815
Comments
getabc
added
bug
Something isn't working
triage
Pending investigation & classification (CCB)
labels
Nov 8, 2024
Reproduced with |
troglobit
added a commit
that referenced
this issue
Nov 16, 2024
Issue #815 detail issues found running the Clixon Controllar and Cisco Yangsuite. The errors and warnings listed are very similar to pyang, which the undersigned has, the following changes fixes the pyang errors: - relocate 'feature containers' to submodule - drop already deviated ospf:database deviations - drop unused imports Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@getabc the |
troglobit
added a commit
that referenced
this issue
Nov 16, 2024
Issue #815 detail issues found running the Clixon Controllar and Cisco Yangsuite. The errors and warnings listed are very similar to pyang, which the undersigned has, the following changes fixes the pyang errors: - relocate 'feature containers' to submodule - drop already deviated ospf:database deviations - drop unused imports Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit
added a commit
that referenced
this issue
Nov 18, 2024
Issue #815 detail issues found running the Clixon Controllar and Cisco Yangsuite. The errors and warnings listed are very similar to pyang, which the undersigned has, the following changes fixes the pyang errors: - relocate 'feature containers' to submodule - drop already deviated ospf:database deviations - drop unused imports Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit
added a commit
that referenced
this issue
Nov 18, 2024
Issue #815 detail issues found running the Clixon Controllar and Cisco Yangsuite. The errors and warnings listed are very similar to pyang, which the undersigned has, the following changes fixes the pyang errors: - relocate 'feature containers' to submodule - drop already deviated ospf:database deviations - drop unused imports Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
We are currently testing infix against two systems, the clixon-controller and Yangsuite
https://github.com/clicon/clixon-controller
https://github.com/CiscoDevNet/yangsuite/
clixon-controller
During connection, the controller reported the following error.
Yang module infix-if-container has IF_FEATURE containers, but no such FEATURE statement exists.
The "if-feature" does not seem to work in a sub-module if the feature is declared in the module to which it belongs.
According to RFC 7950 (YANG 1.1), Section 5.1: "A submodule can reference any definition in the module it belongs to and in all submodules included by the module." However, this does not explicitly mention the inheritance or referencing of features across modules and submodules.
Yangsuite
I used the Cisco Yangsuite to validate all the models, and it had a similar error
The following modules in the YANG set reported errors and warnings when parsed and validated.
Conclusion
Should a submodule be able to reference any definition in the module to which it belongs?
The RFC seems unclear, and using a Cisco tool throws an error at it.
Expected Behavior
NA
Steps To Reproduce
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: