Methods
|
|
|
|
__check
|
__check ( self )
Check a configuration
Exceptions
|
|
ValueError, 'ERROR: Duplicate IP %s detected' %( address )
|
|
|
__init__
|
__init__ ( self, realmachines )
Initialize a VCML Cluster object
|
|
_fix_addresses
|
_fix_addresses ( self )
Build indexes into the config
|
|
_get_cluster
|
_get_cluster ( self )
Returns the cluster object
|
|
_get_realmachines
|
_get_realmachines ( self )
Returns the value of self.__realmachines
|
|
add_realmachine
|
add_realmachine ( self, newmachine )
Adds a system to self.__realmachines
|
|
create
|
create (
self,
vmtype,
networktype,
disktype,
)
Returns the object tree for the specification
Exceptions
|
|
LookupError, "ERROR: %s not found in pyvcd realmachines" %(hostargs [ 'realhost' ] )
LookupError, "ERROR: %s not found in pyvcd realmachines" %(lanargs [ 'realhosts' ] )
|
|
|
create_ip
|
create_ip ( self, lan )
Creates a valid IP inside LAN
|
|
load
|
load ( self )
Loads the configuration into the internal dictionary
|
|
remove_realmachine
|
remove_realmachine ( self, machinename )
Removes a system from self.__realmachines
|
|
start
|
start ( self )
Starts the virtual cluster in the specification
|
|
status
|
status ( self )
Returns the status of a specified cluster
|
|
stop
|
stop ( self )
Stops the virtual cluster in the specification
|