YANGTOOLS-841: Fix SchemaContextUtil.findNodeInSchemaContext() 29/66829/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Jan 2018 10:23:44 +0000 (11:23 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Jan 2018 11:48:36 +0000 (12:48 +0100)
commitd027a59601cfbbc912e00e351eeb35a27dcc3bc2
tree0d9e51f2ade484154cd3fedbc892767d5ba3f224
parentd0e74b9657b52b959ea01d3c8ce2d95758e926ea
YANGTOOLS-841: Fix SchemaContextUtil.findNodeInSchemaContext()

When performing recursive node lookup, consider
{Action,Notification}NodeContainers, so that we correctly resolved
nested actions and notifications -- which are new elements in RFC7950
metamodel.

Also generalized RPC input/output lookup to work on actions, too.

Change-Id: I877061c7f0370caf1ed04eb9420a43af3b2d3915
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/YT841Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/YT841/foo.yang [new file with mode: 0644]