When config and operational datastore both have same data, then if
we get data which has a leaf-list node by rests/data, it will fail,
because there is no code to process leaf-list.
Change-Id: I4724447158bf0a1a12e87145dcb361e8196b1170
Signed-off-by: Wsx25289 <10200860@zte.com.cn>
(cherry picked from commit
cf8760f55d752af8abafbf09d0f4f9116b9c753b)
mapValueToBuilder(((LeafSetNode<Object>) configDataNode).getValue(),
((LeafSetNode<Object>) stateDataNode).getValue(), builder);
return builder.build();
mapValueToBuilder(((LeafSetNode<Object>) configDataNode).getValue(),
((LeafSetNode<Object>) stateDataNode).getValue(), builder);
return builder.build();
+ } else if (configDataNode instanceof LeafSetEntryNode) {
+ final NormalizedNodeBuilder<YangInstanceIdentifier.NodeWithValue, Object, LeafSetEntryNode<Object>>
+ builder = Builders.leafSetEntryBuilder().withNodeIdentifier(((LeafSetEntryNode<?>) configDataNode)
+ .getIdentifier()).withValue(configDataNode.getValue());
+ return builder.build();
} else if (configDataNode instanceof UnkeyedListNode) {
final CollectionNodeBuilder<UnkeyedListEntryNode, UnkeyedListNode> builder = Builders
.unkeyedListBuilder().withNodeIdentifier(((UnkeyedListNode) configDataNode).getIdentifier());
} else if (configDataNode instanceof UnkeyedListNode) {
final CollectionNodeBuilder<UnkeyedListEntryNode, UnkeyedListNode> builder = Builders
.unkeyedListBuilder().withNodeIdentifier(((UnkeyedListNode) configDataNode).getIdentifier());