Table of Contents

Class: VM pyVC/VirtualMachines/Base.py

This base object defines a Virtual Machine

Base Classes   
object
Methods   
__init__
__repr__
__str__
_get_addr
_get_disks
_get_macaddr
_get_macaddrs
_get_memory
_get_networks
_get_realmachine
_get_status
_get_vmgroup
_get_vmname
_set_memory
_set_status
_set_vmgroup
start
stop
  __init__ 
__init__ (
        self,
        realmachine,
        name,
        addr="",
        macaddr="",
        disks=None,
        networks=None,
        memory=32,
        vmgroup=1,
        **keywords,
        )

  __repr__ 
__repr__ ( self )

Exceptions   
NotImplementedError
  __str__ 
__str__ ( self )

Exceptions   
NotImplementedError
  _get_addr 
_get_addr ( self )

Returns the value of self.__addr

  _get_disks 
_get_disks ( self )

Returns a list of disks allocated to a VM

  _get_macaddr 
_get_macaddr ( self )

Returns the MAC address assigned to a VM

  _get_macaddrs 
_get_macaddrs ( self )

Returns the MAC addresses assigned to a VM

  _get_memory 
_get_memory ( self )

Returns the amount of memory allocated to a VM

  _get_networks 
_get_networks ( self )

Returns a list of networks allocated to a VM

  _get_realmachine 
_get_realmachine ( self )

Returns the MAC address assigned to a VM

  _get_status 
_get_status ( self )

Returns the status of a VM

  _get_vmgroup 
_get_vmgroup ( self )

Returns the vmgroup assigned to a VM

  _get_vmname 
_get_vmname ( self )

Returns the name assigned to a VM

  _set_memory 
_set_memory ( self,  memory )

Sets the amount of memory allocated to a VM

  _set_status 
_set_status ( self,  status )

Sets the status of a VM

  _set_vmgroup 
_set_vmgroup ( self,  vmgroup )

Sets the vmgroup assigned to a VM

  start 
start ( self )

Abstract method to start a VM

Exceptions   
NotImplementedError
  stop 
stop ( self )

Abstract method to stop a VM

Exceptions   
NotImplementedError

Table of Contents

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