Comment 5 for bug 919265

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote : R:[Bug 919265] [NEW] Quantum create port API accepts invalid state value

I will look into this.
I actually think we have a unit tesys for checking the state. However there is a chance the check might be enforced only for the update operation.

Inviato da Samsung Mobile

Unmesh Gurjar <email address hidden> ha scritto:

Public bug reported:

The Quantum Create port API should accept only 2 states (ACTIVE and
DOWN). However, when the create port API is provided with an invalid
state, it creates a port and returns an Accepted(202) response. The API
should return a BadRequest(400) response instead.

** Affects: quantum
     Importance: Undecided
         Status: New

--
You received this bug notification because you are a member of Netstack
Core Developers, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/919265

Title:
  Quantum create port API accepts invalid state value

Status in OpenStack Quantum (virtual network service):
  New

Bug description:
  The Quantum Create port API should accept only 2 states (ACTIVE and
  DOWN). However, when the create port API is provided with an invalid
  state, it creates a port and returns an Accepted(202) response. The
  API should return a BadRequest(400) response instead.

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/919265/+subscriptions