Part of libcloud.compute.drivers.gogrid View Source View In Hierarchy
Method | get_uuid | Unique hash for a node, node image, or node size |
Inherited from Node:
Method | __init__ | Undocumented |
Method | reboot | Reboot this node |
Method | destroy | Destroy this node |
Method | __repr__ | Undocumented |
Method | _set_public_ips | Undocumented |
Method | _get_public_ips | Undocumented |
Method | _set_private_ips | Undocumented |
Method | _get_private_ips | Undocumented |
Inherited from UuidMixin (via Node):
Method | uuid | Undocumented |
Returns | string
The hash is a function of an SHA1 hash of the node, node image, or node size's ID and its driver which means that it should be unique between all objects of its type. In some subclasses (e.g. GoGridNode) there is no ID available so the public IP address is used. This means that, unlike a properly done system UUID, the same UUID may mean a different system install at a different time >>> from libcloud.compute.drivers.dummy import DummyNodeDriver >>> driver = DummyNodeDriver(0) >>> node = driver.create_node() >>> node.get_uuid() 'd3748461511d8b9b0e0bfa0d4d3383a619a2bb9f' Note, for example, that this example will always produce the same UUID! |