Leafs with identityref point to the identity's QName. Since we are
remapping namespaces, these need to be included as well.
JIRA: YANGTOOLS-1277
Change-Id: I2885dd59bcdd85cfe4f29edceaf68cb27ed7dca7
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
7042ef1344f1c38b730132e5bcb12592fcd9e9b0)
super.startYangModeledAnyXmlNode(transform(name), childSizeHint);
}
+ @Override
+ public void scalarValue(final Object value) throws IOException {
+ // identityref leaf nodes contain identity QName as a value - it needs to be transformed
+ super.scalarValue(value instanceof QName ? transform((QName) value) : value);
+ }
+
/**
* Transforms a QName to new mapping.
*