Make sure SmtmtNamespaceContext uses belongs-to prefix 44/94144/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 10 Dec 2020 11:48:16 +0000 (12:48 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 10 Dec 2020 12:28:46 +0000 (13:28 +0100)
commitbb9c8c8751e338d2e683063144d1d5810b22eee7
tree23192bf139f9bf06704df9774399c88bb4eb5ab9
parent5fe0d9e2a63cc9cf3be8c39f32305cf9e2a8be4e
Make sure SmtmtNamespaceContext uses belongs-to prefix

For xpath parsing we nee to make sure we take into account the
prefix under which 'belongs-to' module is known to the submodule.

JIRA: YANGTOOLS-1201
Change-Id: Id38d76443d23eecef09f1f927c44218363a3a1d1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/namespace/StmtNamespaceContext.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT1201Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT1201/bar.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT1201/foo.yang [new file with mode: 0644]