Table of Contents

Class: Helper pyVC/Helpers/Interface.py

This object defines a Interface to run on the real machine

This object can be instantiated as: interface = Helper(realmachine, networks, addrs) realmachine = Machine networks = [Network, ...] addrs is a comma separated string of IP addresses

Derives from: pyVC.Helpers.Base

Base Classes   
Base.Helper
Methods   
__del__
__init__
__repr__
__str__
_get_addrs
start
stop
  __del__ 
__del__ ( self )

  __init__ 
__init__ (
        self,
        realmachine,
        networks,
        addrs,
        **keywords,
        )

  __repr__ 
__repr__ ( self )

  __str__ 
__str__ ( self )

  _get_addrs 
_get_addrs ( self )

Returns a list of IP addresses to be assigned to the network interface.

  start 
start ( self )

Brings up the network interface on the real Machine.

If multiple addresses are supplied to the constructor, this function will create Linux IP aliases starting with :0, skipping any used interfaces.

This method also registers self.stop() as an atexit function, to ensure proper cleanup of processes and files

interface.start()

  stop 
stop ( self )

Brings down the network interface on the real Machine.

This method will perform a no-op if the interface is already down or if self.status != started.

interface.stop()


Table of Contents

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