Clean up predicates prior to xpath normalization 31/91331/1
authorTomas Cere <tomas.cere@pantheon.tech>
Wed, 15 Jul 2020 08:43:57 +0000 (10:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 15 Jul 2020 09:40:28 +0000 (11:40 +0200)
commit590ecabb7dac38069747538a8e49e9122d50a620
tree039cc62570fa77a188175d926361b048ba4be486
parent5a467e97bd5f3158c47ff7e1c0714790f83dfcd0
Clean up predicates prior to xpath normalization

Path splitting is not equipped to ignore step predicates, which leads
it to do arrive at the wrong path. Remove any predicates before
embarking on resolving the reference.

JIRA: YANGTOOLS-1126
Change-Id: Ia32836ad1acec0762d9baa7ded5f65fa72f39b93
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
(cherry picked from commit 76fac8f8464bd072d9b26dccddb5450d3716dd51)
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java