neutron/neutron/objects
Sławek Kapłoński 30b86eb169 Fix error message when duplicate QoS rule is created
When user tries to create QoS rule which already exists in same
QoS policy, only check if rule is duplicated was done on DB layer.
Because of that, there was many retries of DB operations so user
waits to response from Neutron server long time.
Also error message returned from this DB related exception was not
user friendly.

This patch adds additional check of such duplicated rules before
there is attempt to save new/updated rule in database so in case
of error, response is send to user faster and it has proper
message.

Change-Id: I7d55df1eb931583c3dde064e073deb3e5479acc2
Closes-Bug: #1746526
(cherry picked from commit a91d84cfb4)
2018-02-23 14:39:14 +01:00
..
db Support object string field filtering on "LIKE" statement 2017-07-07 16:15:44 +00:00
extensions Tag mechanism supports resources with standard attribute 2017-07-25 08:14:04 +09:00
logapi [log]: implement logging plugin 2017-07-12 13:30:50 +07:00
plugins OVO for FlatAllocation 2016-12-22 13:25:50 +00:00
port objects: update fields_no_update to reflect models 2017-05-24 20:28:04 +00:00
qos Fix error message when duplicate QoS rule is created 2018-02-23 14:39:14 +01:00
README.rst Objects: Add README for neutron/objects directory tree 2016-10-07 15:12:20 +00:00
__init__.py Use dirname in object recursive import 2017-04-20 04:35:10 -07:00
address_scope.py Use project_id instead of tenant_id in objects 2017-01-13 14:31:26 +00:00
agent.py Support object string field filtering on "LIKE" statement 2017-07-07 16:15:44 +00:00
auto_allocate.py objects: update fields_no_update to reflect models 2017-05-24 20:28:04 +00:00
base.py Tag mechanism supports resources with standard attribute 2017-07-25 08:14:04 +09:00
common_types.py Support protocol numbers in security group API 2018-01-09 14:28:49 +01:00
exceptions.py Move OVO exceptions to neutron/objects/exceptions 2016-11-10 10:25:06 -07:00
flavor.py Flavor and Service Profile to OVO 2017-01-05 16:59:36 -06:00
floatingip.py Make UUIDField actually validate UUIDs 2016-12-07 15:11:43 +00:00
ipam.py objects: update fields_no_update to reflect models 2017-05-24 20:28:04 +00:00
l3agent.py [OVO] Integration of RouterL3AgentBinding 2017-05-26 13:17:58 -07:00
metering.py objects: update fields_no_update to reflect models 2017-05-24 20:28:04 +00:00
network.py Allow to set/modify network mtu 2017-08-11 00:57:34 +00:00
ports.py Merge "RouterPort OVO integration" 2017-07-31 09:39:02 +00:00
provisioning_blocks.py OVO for Provisioning Block DB Model 2016-11-22 19:15:51 +00:00
quota.py OVO for Quotas and Reservation 2017-03-24 15:52:34 +00:00
rbac_db.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
router.py Merge "RouterPort OVO integration" 2017-07-31 09:39:02 +00:00
securitygroup.py Integrate Security Groups OVO 2017-06-13 19:27:27 +00:00
servicetype.py Make UUIDField actually validate UUIDs 2016-12-07 15:11:43 +00:00
subnet.py objects: update fields_no_update to reflect models 2017-05-24 20:28:04 +00:00
subnetpool.py objects: added update_objects to OVO framework 2017-05-24 20:28:11 +00:00
tag.py OVO for Tag 2017-03-07 23:06:00 +00:00
trunk.py Tag mechanism supports resources with standard attribute 2017-07-25 08:14:04 +09:00
utils.py Support object string field filtering on "LIKE" statement 2017-07-07 16:15:44 +00:00

README.rst

Neutron Objects

Directory

This directory is designed to contain all modules which have objects definitions shipped with core Neutron. The files and directories located inside of this directory should follow the guidelines below.

Structure

The Neutron objects tree should have the following structure:

  • The expected directory structure is flat, except for the ML2 plugins. All ML2 plugin objects should fall under the plugins subdirectory (i.e. plugins/ml2/gre_allocation).
  • Module names should use singular forms for nouns (network.py, not networks.py).