| |
- Address
- AddressList
class Address |
|
The class for address description |
|
- __cmp__(self, other)
- Compares two addresses... returns 0 for equal
(address and device are compared), otherwise 1
@self The object instance
@other The object to compare to
- __init__(self, filename='', number='')
- The initialization of an address object
@self The object instance
- __str__(self)
- Converts the structure to a multiline string,
for storage
@self The object instance
- address(self)
- Return the address of the address object
@self The object instance
- broadcast(self)
- Return the broadcast address of the address object
@self The object instance
- device(self)
- Returns the device of the address object
@self The object instance
- prefix(self)
- Get the of the address object
@self The object instance
- readFile(self, filename, number='')
- Read configuration file, and populate the object
@self The object instance
@filename The file to read from
@number The address sequence no
- readOldFile(self, filename)
- Read old ifcfg-<foo> file
@self The object instance
@file The file from which to read the configuration
- scope(self)
- Returns the scope of the address object
@self The object instance
- setAddress(self, address)
- Set the address of the address object
@self The object instance
@address The new address
- setBroadcast(self, broadcast)
- Set the broadcast address of the address object
@self The object instance
@broadcast The new broadcast address
- setDevice(self, device)
- Set the device of the address object
@self The object instance
@device The device name
- setPrefix(self, prefix)
- Set the prefix of the address object
@self The object instance
@prefix The new prefix
- setScope(self, scope)
- Set the scope of the address object
@self The object instance
@scope The scope
- toString(self, number='')
- Converts the structure to a multiline string,
for storage
@self The object instance
@number The sequence number of this address
|
class AddressList |
|
Maintains a list of addresses |
|
- __init__(self)
- Initializes an empty list of addresses
@self The object instance
- addAddress(self, address)
- Add an address to the array of address objects
@self The object instance
@address The address to add
- addressList(self)
- Returns an array of adress objects
@self The object instance
- deleteAddress(self, address, device)
- Delete an address object
@self The object instance
@address The address of the device to delete
@device The device to delete
- readFile(self, filename)
- Read configuration file, and populate the object
@self The object instance
@filename The file to read from
- setAddressList(self, list)
- Explicitly sets the array of array objects
@self The object instance
- toString(self)
- Return a multiline string containing the addresses,
in the format of ADDRESS0, ..., ADDRESS1 etc
@self The object instance
| |