Skip to content

Add new reference phase, delete leafref attributes.#772

Open
robshakir wants to merge 1 commit intombj4668:masterfrom
robshakir:master
Open

Add new reference phase, delete leafref attributes.#772
robshakir wants to merge 1 commit intombj4668:masterfrom
robshakir:master

Conversation

@robshakir
Copy link
Copy Markdown

 * (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