Table of Contents

Class: Specification pyVC/Specifications/Base.py

This object defines a VCML Cluster

Base Classes   
dict
Methods   
__check
__init__
_fix_addresses
_get_cluster
_get_realmachines
add_realmachine
create
create_ip
load
remove_realmachine
start
status
stop
  __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

Exceptions   
NotImplementedError
  load 
load ( self )

Loads the configuration into the internal dictionary

Exceptions   
NotImplementedError
  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


Table of Contents

This document was automatically generated on Thu Jan 18 11:28:09 2007 by HappyDoc version 2.1