nxshell BulkImport image problems
-
Hi,
i'm currently working on a nxshell script to import a large number of nodes. This works fine so far, but I have a problem with set the image of the node.
flags = NXCObjectCreationData.CF_DISABLE_NXCP containerId = 2 name = "Node1" ip = "0.0.0.0" node = session.findObjectByName("Node2") cd = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, containerId); cd.setCreationFlags(flags); cd.setPrimaryName(ip) nodeId = session.createObject(cd) session.setObjectManaged(nodeId, False) print '"%s" created (IP: %s)' % (name, ip) md = NXCObjectModificationData(nodeId) md.setImage(node.image) session.modifyObject(md)Traceback (most recent call last): File "<stdin>", line 13, in <module> TypeError: setImage(): 1st arg can't be coerced to java.util.UUIDThe node i'm refering to has an image set and I can print the UUID.
Any ideas why setting images is not working?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login