l.d.g.GoGridNode(Node) : class documentation

Part of libcloud.drivers.gogrid View Source View In Hierarchy

Undocumented
Method get_uuid Unique hash for this node

Inherited from Node:

Method __init__ Undocumented
Method reboot Reboot this node
Method destroy Destroy this node
Method __repr__ Undocumented
def get_uuid(self): (source)
Unique hash for this node
Returnsstring

The hash is a function of an SHA1 hash of the node's ID and its driver which means that it should be unique between all nodes. In some subclasses (e.g. GoGrid) 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.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!

API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:44:49.