History | View | Annotate | Download (10.5 kB)
cyclades: Validate fields of API requests
Make sure that all fields of a request (user input) have a valid type.This commit validates 'ports', 'servers' and 'floating_ips' APIs.
Refs #4979
cyclades: Set detail=True by default
cyclades: Optimize network related DB queries
Use 'prefetch_related' and 'select_related' to optimize DB queries.
cyclades: Fix bugs in port creation
cyclades: Fix locking issue in port create
Lock VM before locking network, because otherwise a deadlock may occurwith code of snf-dispatcher.
cyclades: Get network lock when creating a port
Take the network lock before creating a port in the network. Not takingthe lock may result in a race condition between creating the port anddeleting the network. Also, it can cause a DB deadlock.
cyclades: Allow deletion of ports from public nets
Move check about deleting a port from a public network. This check isonly enforced in the API, but is allowed in logic layer, e.g. snf-managecommands.
cyclades: Return 'links' in subnet and port calls
cyclades: Fix bugs in subnets and ports
cyclades: Refactor code
Move code relative with allocating ips and floating IPs to 'logic.ips'module.
cyclades: Register url for ports detail view
cyclades: Create ports without 'device_id'
Allow creation of ports that are not connected to any instance. Suchports will be in 'DOWN' state. To allow this, 'machine' attribute ofNetworkInterface model has been made to allow null values. Finally, the'logic.ports' module has been remove, and the corresponding code has...
cyclades: Create port with specified IPv4 Address
Extend POST /ports API method to respsect 'fixed_ips' attribute. If thisattribute contains a valid IPv4 address, the new port will get thisaddress instead of trying to allocate one from the available IP pools of...
cyclades: Fix bug in port-create
Check if floating-ip belongs to the given network
cyclades: Fix typo
cyclades: Get VM for update when creating port
cyclades: Fix POST /ports
Modify port create api call. If the user gives a public networkhe has to give a valid floating ip as well.
cyclades: Add backend code to Ports API/logic
Add backend code to create and remove ports from Ganeti backends. Alsoadd some imporovements and fixes to logic, API code and managementcommands.
cyclades: PEP8 fixes
cyclades: Add snf-manage port-remove command
cyclades: Add logic ports.py
Created a new file for ports in logic directory. This will havethe code about port manipulation in the backend. For now it is justused for db filling.Use the new function 'create' in the ports API.
cyclades: snf-manage port-create
cyclades: Add more port tests
cyclades: Syntactic refactor ports
cyclades: Add /ports api call