Change-Id: If31258a2e9d88f94cde835106d12b3b2ca6a12d5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
@Override
public TipProducingDataTree create(final TreeType treeType, final YangInstanceIdentifier rootPath) {
+ if (rootPath.isEmpty()) {
+ return create(treeType);
+ }
final NormalizedNode<?, ?> root;
final PathArgument arg = rootPath.getLastPathArgument();
if (arg instanceof NodeIdentifier) {
b.withNodeIdentifier((NodeIdentifierWithPredicates) arg);
root = b.build();
} else {
+
// FIXME: implement augmentations and leaf-lists
throw new IllegalArgumentException("Unsupported root node " + arg);
}