Revision ec392296
ID | ec392296b7f31fa4bc1e0a3e3b5de372f1a9ae30 |
Implement 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 - LUNetworkModify:
- Change gateway IP if it is free in the pool
- Toggle extenally reserved IPs - LUNetworkQuery:
- Summarily list all existing networks
- Supply detailed info for every existing network
+ List used/free IPs
+ List instances with NICs assigned to the corresponding network
+ List NIC index and IP for the above instances
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
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Files
- added
- modified
- copied
- renamed
- deleted