Skip to content

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