Introduce new module for IP pool management
authorDimitris Aragiorgis <dimara@grnet.gr>
Mon, 4 Jun 2012 14:33:22 +0000 (17:33 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Wed, 22 Aug 2012 14:11:13 +0000 (17:11 +0300)
commit8e5f43b1a4274923da6cbd70b1897d071748a7fb
tree65fad97b2509b263983f806faa8dca2dec12548f
parentf4f36cf3933310d7f7d71c76451c6a6089125f03
Introduce new module for IP pool management

Add new library module lib/network.py.
Introduce new class: AddressPool.

AddressPool implements all operations needed for managing IPs
inside the IP pool.

Given a Network config object (nobj), the class:

 * initializes the corresponding IP pool object via
   network.AddressPool.InitializeNetwork(nobj)
 * obtains the corresponding IP pool object via
   network.AddressPool(nobj)
 * manipulates IPs inside the pool

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/errors.py
lib/network.py [new file with mode: 0644]