[YANGTOOLS-841] SchemaContextUtil.findNodeInSchemaContext does not consider actions and nested notifications Created: 25/Oct/17 Updated: 10/Apr/22 Resolved: 04/Jan/18 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | 2.0.0, 1.2.1 |
| Fix Version/s: | 1.2.2, 2.0.1 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Marek Gradzki | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Yangtools fails to parse following augmentation present in augment augment "/rt:routing-state/rt:ribs/rt:rib/rt:active-route/" where active-route is defined as(ietf-routing@2016-08-18.yang): action active-route { Address family specific modules MUST augment input container route { If no route exists in the RIB for the destination Address family specific modules MUST augment this uses route-metadata; with following exception: ' not found [at META-INF/yang/ietf-mpls@2017-07-02.yang:366:2] ' not found [at META-INF/yang/ietf-mpls@2017-07-02.yang:366:2] |
| Comments |
| Comment by Marek Gradzki [ 25/Oct/17 ] |
|
Models can be found at : |
| Comment by Robert Varga [ 26/Dec/17 ] |
|
Is this reproducible with 1.2.x or 2.0.0? |
| Comment by Marek Gradzki [ 02/Jan/18 ] |
|
I was able to reproduce it using 1.2.1: https://gerrit.fd.io/r/#/c/9917/ Console output:
|
| Comment by Robert Varga [ 02/Jan/18 ] |
|
This works reliably in 2.0.0. |
| Comment by Robert Varga [ 02/Jan/18 ] |
|
And this is not a yangtools issue, as it resolves everything just fine. Console output above clearly indicates this MDSAL code generator throwing the exception: |
| Comment by Robert Varga [ 02/Jan/18 ] |
|
This is binding V1 + YANG 1.1 action – this was never advertised as working. Do V2 bindings trigger the same error? |
| Comment by Marek Gradzki [ 02/Jan/18 ] |
|
Thanks for info! Is it possible to fix it in 1.2.x? If not, Honeycomb will probably have to wait for 2.0.0 adoption by core ODL projects (oxygen?). |
| Comment by Marek Gradzki [ 02/Jan/18 ] |
|
Sorry, I missed your previous comment. Never tried V2 bindings. |
| Comment by Robert Varga [ 02/Jan/18 ] |
|
This is coming back to yangtools, SchemaContextUtil.findDataSchemaNode(SchemaContext,SchemaPath), which is not considering actions nor nested notifications. |
| Comment by Robert Varga [ 02/Jan/18 ] |
| Comment by Marek Gradzki [ 04/Jan/18 ] |
|
It looks like MDSAL code generator needs fix as well to resolve original issue. Here is stack trace (can be reproduced using https://gerrit.fd.io/r/#/c/9917/2 + https://git.opendaylight.org/gerrit/66829 ): [ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl generator |