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

Add new reference phase, delete leafref attributes. #772

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robshakir
Copy link

 * (M) pyang/statements.py
   - Add a validation phase where changes to types with references
     by deviations can be made ahead of validating any reference.
   - Remove the `i_leafref` attribute when a deviation changes the
     type of a leaf to a type that isn't a leafref.
 * (A) test/test_issues/test_i771
   - Add a test case validating the fix to issue #771.

Fixes #771.

 * (M) pyang/statements.py
   - Add a validation phase where changes to types with references
     by deviations can be made ahead of validating any reference.
   - Remove the `i_leafref` attribute when a deviation changes the
     type of a leaf to a type that isn't a leafref.
 * (A) test/test_issues/test_i771
   - Add a test case validating the fix to issue mbj4668#771.
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

Successfully merging this pull request may close these issues.

Deviation changing leafref to another type still triggers leafref validation.
1 participant