| Class: Helper | pyVC/Helpers/Interface.py | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This object defines a Interface to run on the
|
| 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 != interface.stop() |