Make sure SmtmtNamespaceContext uses belongs-to prefix 58/94158/1
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 13:00:48 +0000 (14:00 +0100)
commit35bb9b5bfb4be864fa364dd11082f837c335b0e8
treeafa91fb4c4f1a4b56b89205d73774eb5a7153367
parent19c7b05056819a88f9648e6c16b22dd5e61bb364
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>
(cherry picked from commit bb9c8c8751e338d2e683063144d1d5810b22eee7)
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]