controller-config/yang-ext:mount/config:modules
* added recursive call to parseXml if baseType is leafref (otherwise
identityref and instnce identifier values were not serialized
correctly)
Change-Id: Ie17f8cff1b7bb59e541996a277ff6dfefa30a375
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
if (baseType instanceof LeafrefTypeDefinition) {
final LeafrefTypeDefinition leafrefTypeDefinition = (LeafrefTypeDefinition) baseType;
baseType = SchemaContextUtil.getBaseTypeForLeafRef(leafrefTypeDefinition, schemaCtx, schema);
if (baseType instanceof LeafrefTypeDefinition) {
final LeafrefTypeDefinition leafrefTypeDefinition = (LeafrefTypeDefinition) baseType;
baseType = SchemaContextUtil.getBaseTypeForLeafRef(leafrefTypeDefinition, schemaCtx, schema);
- value = parseXmlValue(xml, codecProvider, baseType);
+ value = parseXmlValue(xml, codecProvider, schema, baseType, schemaCtx);
} else if (baseType instanceof InstanceIdentifierType) {
value = InstanceIdentifierForXmlCodec.deserialize(xml, schemaCtx);
} else if (baseType instanceof IdentityrefTypeDefinition) {
} else if (baseType instanceof InstanceIdentifierType) {
value = InstanceIdentifierForXmlCodec.deserialize(xml, schemaCtx);
} else if (baseType instanceof IdentityrefTypeDefinition) {