« Previous | Next » 

Revision ec392296

IDec392296b7f31fa4bc1e0a3e3b5de372f1a9ae30

Added by Dimitris Aragiorgis about 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 <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences