Basic IP pool management logic
authorDimitris Aragiorgis <dimara@grnet.gr>
Mon, 4 Jun 2012 15:54:02 +0000 (18:54 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Wed, 22 Aug 2012 14:11:13 +0000 (17:11 +0300)
commitf28370505fc928d8a6182bbbab9cd5e3a314c3ef
treef5cf4b99b2b4cc57bec319874e4c2dcc713d1866
parent8e5f43b1a4274923da6cbd70b1897d071748a7fb
Basic IP pool management logic

Implement LUs for corresponding opcodes:
 * LUNetworkAdd:
   - Check for IP validity
   - Reserves all necessary IPs
   - Create new Network config object
 * LUNetworkRemove:
   - Checks if connected to any nodegroup
   - Remove a Network config object

Implement basic config methods:
 * LookupNetwork()
   - Given the network name return the network UUID
 * AddNetwork()
   - Add a new network to the config
 * RemoveNetwork()
   - Remove a network from the config

Add new locking level: LEVEL_NETWORK

Add various useful config methods for retrieving network info.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/cmdlib.py
lib/config.py
lib/locking.py
lib/server/masterd.py