neutron/neutron/objects
John Schwarz 75737c5ef0 Gracefully handle duplicate rule creation
Previously, creating a second bandwidth limit rule for a policy raised
an uncaught exception, which eventually caused 'ServerFault' on the
client side. This patch replaces this exception with a NeutronException
which leads to a more correct 'Conflict' error instead.

Note that the code is implemented in the base object class. This means
that future versioned objects will also feature this restriction if
their database implies that no duplicate entries can be created.

Change-Id: I882d60843e1e651f3f9754746ac670f499431466
Partially-Implements: quantum-qos-api
2015-08-05 17:28:17 +02:00
..
qos objects.qos.policy: forbid deletion when attached to a port or a network 2015-08-02 20:23:03 +02:00
__init__.py First QoS versioned objects, ever 2015-07-02 09:21:45 +03:00
base.py Gracefully handle duplicate rule creation 2015-08-05 17:28:17 +02:00