OS API should implement network creation
nova/api/
def create(self, req, id, body=None):
raise exc.HTTPNotImpl
This call could be implemented in the same way as in nova-manage CLI utility (get default arguments from configuration etc.). It should return a list of new networks.
Supported arguments for the call should be passed in a dictionary:
- string: "bridge", "bridge_interface",
- integer: "network_size", "num_networks",
Sample request:
curl -X 'POST' 'http://
Response:
{"networks": [{"bridge": "br234", "vpn_public_port": 1000, "dhcp_start": "10.70.105.3", "bridge_interface": "eth0", "updated_at": null, "id": 66085e78-
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Low
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Alexej Ababilov
- Definition:
- Approved
- Series goal:
- Accepted for folsom
- Implementation:
- Implemented
- Milestone target:
- 2012.2
- Started by
- Thierry Carrez
- Completed by
- Vish Ishaya
Related branches
Related bugs
Sprints
Whiteboard
Addressed by: https:/
implement network creation in compute API
Patch is looking good but one issue remains - making the API only create a single network at a time.
Gerrit topic: https:/
Addressed by: https:/
Only allow a single network to be created