« Previous | Next » 

Revision bf466e8e


Added by Dimitris Aragiorgis over 12 years ago

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 <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences