Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api / ports.py @ 6fec4302

History | View | Annotate | Download (10.5 kB)

# Date Author Comment
5a6cee09 02/21/2014 04:05 pm Christos Stavrakakis

snf_django: Handle unicode errors in JSON bodies

Catch unicode errors when JSON deserializing the body of a request.
Also, rename 'get_request_dict' function to 'get_json_body', as it is a
more represenative name for what the function is doing.

14402edc 01/24/2014 07:12 pm Christos Stavrakakis

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

bf58eed3 12/19/2013 04:36 pm Dionysis Grigoropoulos

cyclades: Set detail=True by default

  • Set detail=True by default for networks and ports
  • Update subnets to support /detail
883c1f94 12/17/2013 05:11 pm Christos Stavrakakis

cyclades: Optimize network related DB queries

Use 'prefetch_related' and 'select_related' to optimize DB queries.

e0b9a688 12/17/2013 12:03 pm Dionysis Grigoropoulos

cyclades: Fix bugs in port creation

  • Fix the name of a port not being saved
  • Check the length of the name of a port is within acceptable limits
e1fab40f 12/09/2013 06:07 pm Christos Stavrakakis

cyclades: Fix locking issue in port create

Lock VM before locking network, because otherwise a deadlock may occur
with code of snf-dispatcher.

d614fa31 12/08/2013 01:59 pm Christos Stavrakakis

cyclades: Get network lock when creating a port

Take the network lock before creating a port in the network. Not taking
the lock may result in a race condition between creating the port and
deleting the network. Also, it can cause a DB deadlock.

6e73f499 11/14/2013 12:14 pm Christos Stavrakakis

cyclades: Allow deletion of ports from public nets

Move check about deleting a port from a public network. This check is
only enforced in the API, but is allowed in logic layer, e.g. snf-manage
commands.

24ea227b 11/06/2013 06:58 pm Dionysis Grigoropoulos

cyclades: Return 'links' in subnet and port calls

  • Return 'links' attribute in subnet api response
  • Return 'links' attribute in port api response
3549cb2f 11/06/2013 06:58 pm Dionysis Grigoropoulos

cyclades: Fix bugs in subnets and ports

  • Return subnets from public networks, in GET subnets
  • Fix a bug in list ports, where only attached ports to servers were
    listed
0292883e 11/04/2013 03:52 pm Christos Stavrakakis

cyclades: Refactor code

Move code relative with allocating ips and floating IPs to 'logic.ips'
module.

342acb45 11/04/2013 09:14 am Kostas Papadimitriou

cyclades: Register url for ports detail view

fae6e5f0 11/01/2013 04:17 pm Christos Stavrakakis

cyclades: Create ports without 'device_id'

Allow creation of ports that are not connected to any instance. Such
ports will be in 'DOWN' state. To allow this, 'machine' attribute of
NetworkInterface model has been made to allow null values. Finally, the
'logic.ports' module has been remove, and the corresponding code has...

69c8d65d 11/01/2013 12:45 am Christos Stavrakakis

cyclades: Create port with specified IPv4 Address

Extend POST /ports API method to respsect 'fixed_ips' attribute. If this
attribute contains a valid IPv4 address, the new port will get this
address instead of trying to allocate one from the available IP pools of...

51a681ac 10/31/2013 04:40 pm Marios Kogias

cyclades: Fix bug in port-create

Check if floating-ip belongs to the given network

8b388efe 10/30/2013 05:30 pm Christos Stavrakakis

cyclades: Fix typo

b968e8e6 10/30/2013 04:23 pm Christos Stavrakakis

cyclades: Get VM for update when creating port

9c74cc19 10/25/2013 04:25 pm Marios Kogias

cyclades: Fix POST /ports

Modify port create api call. If the user gives a public network
he has to give a valid floating ip as well.

86961519 10/18/2013 03:44 pm Christos Stavrakakis

cyclades: Add backend code to Ports API/logic

Add backend code to create and remove ports from Ganeti backends. Also
add some imporovements and fixes to logic, API code and management
commands.

9f6760ee 10/18/2013 01:16 pm Christos Stavrakakis

cyclades: PEP8 fixes

0069a20c 10/16/2013 11:19 am Marios Kogias

cyclades: Add snf-manage port-remove command

f16aa9e6 10/15/2013 01:20 am Marios Kogias

cyclades: Add logic ports.py

Created a new file for ports in logic directory. This will have
the code about port manipulation in the backend. For now it is just
used for db filling.
Use the new function 'create' in the ports API.

a1713485 10/15/2013 01:20 am Marios Kogias

cyclades: snf-manage port-create

  • Create new command snf-manage port-create
  • Create new function util.get_security_group
a3b8aaf6 10/11/2013 04:54 pm Marios Kogias

cyclades: Add more port tests

5db2001a 10/11/2013 11:07 am Marios Kogias

cyclades: Syntactic refactor ports

593851e0 10/10/2013 12:40 pm Build Bot

cyclades: Add /ports api call