5 Commits

Author SHA1 Message Date
Boden R
52d4875c79 Add docstrings for exceptions
Cleaning up a little technical debt by adding docstrings
for our public APIs.

Note: I plan to submit a patch per file as part of this bug work.
These patches won't depend on each other. The last patch of
the series will close the bug.

Partial-Bug: #1614594

Change-Id: Ic0fdc5c77abcbb77a7ca08e4e00302a22ae8e4f5
2016-08-18 13:38:01 -06:00
Omer Anson
72c9448ccc Add DeviceNotFoundError to neutron_lib exceptions
DeviceNotFoundError is used in dragonflow. In an effort to move away
from requiring neutron.common, DeviceNotFoundError should be in
neutron_lib.

Change-Id: Icdbc951af6d01e300a7e020547f90e6948990c0a
2016-08-11 12:28:48 +03:00
Boden R
4dcf5971c8 Sync neutron callbacks into lib
Update neutron-lib callbacks with the latest from neutron
in preparation for updates to the callback notification interface.
The callback updates also require a few module level functions
in the db package.

A few additional unit tests are also added for coverage as is
python docstrings for the public API contained herein.

Change-Id: I74effcc4a564a92c418132042bbdd5bed22c4950
2016-08-03 13:18:34 -06:00
Boden R
0c29ef7ffe Add Neutron context module and some policy methods
Here we add the context module from Neutron, although it is
currently marked as private because it will undergo changes
related to the ongoing enginefacade and Keystone V3 work.

We also add some of the roles management methods from
Neutron's policy module. These are required for the initial
DB patches that follow this one.

Partially implements: Blueprint neutron-lib

Change-Id: I77f8a05d6e3167f3096ad637d124e47ac39a83df
2016-07-30 09:35:01 -04:00
Doug Wiegley
0867d7fe1b Initial shared exceptions
Partially-Implements: blueprint neutron-lib

Change-Id: I1091412515f3755d53b8585fe99b47c01c4823b8
2015-11-25 14:52:05 -08:00