Clean up predicates prior to xpath normalization 29/91329/2
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:06:20 +0000 (11:06 +0200)
commit76fac8f8464bd072d9b26dccddb5450d3716dd51
treee5dfc3fb1c59f584cbc53046edd570ecd0119d4c
parentdb8f21867c13ce9bf55d3bdbfa71e2fb1ac864cc
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>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java