Make sure SmtmtNamespaceContext uses belongs-to prefix 59/94159/2
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:08:27 +0000 (14:08 +0100)
commitd7c5445aed883d82df2e13240c7ff94e32bc3776
treef29ae4f3896a06169199c012189e08884c9849ac
parent021c7a7428dd6d28ba97a946ccc1a13dc9d5a031
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)
(cherry picked from commit 62e56229ba32a8ed6a14b4d0a6d6b1c85f442ec8)
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]