cyclades: Add method to get ip stats to network
Extend Network model with a method to get the number of free and total IPv4 addresses of the network. Also, add method to IPAddress model to release its IPv4 address if any. Finally, update backend-list management command to use 'ip_count' method of Network object.
Showing
- snf-cyclades-app/synnefo/db/models.py 20 additions, 0 deletionssnf-cyclades-app/synnefo/db/models.py
- snf-cyclades-app/synnefo/db/models_factory.py 1 addition, 1 deletionsnf-cyclades-app/synnefo/db/models_factory.py
- snf-cyclades-app/synnefo/logic/management/commands/backend-list.py 3 additions, 3 deletions...des-app/synnefo/logic/management/commands/backend-list.py
Please register or sign in to comment