class documentation
class AddressPool(object):
Address pool class, wrapping an objects.Network object.
This class provides methods to manipulate address pools, backed by objects.Network objects.
| Class Method | |
Initialize an objects.Network object. |
| Method | __init__ |
Initialize a new IPv4 address pool from an objects.Network object. |
| Method | |
Undocumented |
| Method | |
Returns the first free address of the network. |
| Method | |
Returns a list of all externally reserved addresses. |
| Method | |
Returns the first available address. |
| Method | |
Get the count of unused addresses. |
| Method | |
Return a textual representation of the network's occupation status. |
| Method | |
Get the count of reserved addresses. |
| Method | |
Check whether the network is full. |
| Method | |
Checks if the given IP is reserved. |
| Method | |
Release a given address reservation. |
| Method | |
Mark an address as used. |
| Method | |
Write address pools back to the network object. |
| Method | |
Undocumented |
| Constant | FREE |
Undocumented |
| Constant | RESERVED |
Undocumented |
| Instance Variable | ext |
Undocumented |
| Instance Variable | gateway |
Undocumented |
| Instance Variable | gateway6 |
Undocumented |
| Instance Variable | net |
Undocumented |
| Instance Variable | network |
Undocumented |
| Instance Variable | network6 |
Undocumented |
| Instance Variable | reservations |
Undocumented |
| Property | all |
Return a combined map of internal and external reservations. |
| Method | _ |
Undocumented |
| Method | _ |
Undocumented |
| Method | _ |
Undocumented |
Initialize a new IPv4 address pool from an objects.Network object.
| Parameters | |
network:objects.Network | the network object from which the pool will be generated |