35 Commits

Author SHA1 Message Date
Salvatore Orlando
518da1804d Re-assign quantum.api module as last operation
Bug 1199443

This avoids reset of locals in quantum/api/__init__.py,
resulting in sys being None when assigning quantum.api.extensions
to neutron.api.extensions

Change-Id: I2da8b336679b643c92824399a05ca1b9980d1598
2013-07-15 22:51:28 +02:00
Mark McClain
380b0e7db6 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Dan Wendlandt
99b1202c9f Remove v1 code from quantum-server
bp remove-v1-related-code

Removes API, DB, and test code that is used only for Quantum v1 API,
which is no longer supported.

Includes removal of v1 code for sample, ovs, linuxbridge and ryu plugin.

Nicira and Cisco plugins will be handled outside of this patchset.

Change-Id: Id34dc7229bb7b399b5cfd4602dbc8d5ee4e8de61
2012-08-10 10:37:36 -07:00
Zhongyue Luo
87448d5749 Reorder imports by full module path
Fixes bug #1014765

Change-Id: I849d73fc756b830b78492a6ed0e8cf2d32fde8cd
2012-06-21 20:13:15 +08:00
Gary Kotton
9271654adf Implements the blueprint use-common-cfg for the quantum service.
More specifically uses global CONF for the quantum.conf file.

Added support for the RYU plugin (similar to ovs and lb,
which use non-global conf for plugins)

patch 27: clean up find_config_file
patch 28: for config file use old paths (plugin unit tests)
          this hopefully will be replaced when we move to common
          config file
patch 30: rebase and merge (utils.py and policy.py)

Change-Id: Ic0bf5bdd44f24a557240f7afe4e070dee448c63c
2012-06-20 02:30:11 -04:00
Yong Sheng Gong
f36a8563c6 fix some pylint warnings.
1. Parent class should have instance variables used in its method(s).
2. remove some unused imports
Patch 2: fix according to comments
Patch 4: fix problem under pep8 1.1
Change-Id: Iafd89a6017b30484fb8da50219be6b4ae073f083
2012-05-26 06:15:20 +08:00
Maru Newby
c552626664 Update codebase for HACKING compliance.
* This is a massive patch that aims to clean up the codebase
   and bring it into compliance with HACKING.rst and PEP8 in one
   fell swoop.
 * Cleaned up use of gettext.
 * Updated log usage for consistency.
 * The tests run successfully against all plugins except
   cisco and nicira (due to dependency issues with these plugins).
 * Addresses bug 981208

Change-Id: I4d8c7ab138d8f7bb906d18dc34f88f8bd0581c19
2012-05-01 11:46:24 -07:00
Ghe Rivero
5698d9b3f8 blueprint api-framework-essex
Addressing Dan's comments.

This changeset provides:
- improved framework for API versioning, with separated controllers for each API version
- Taken from nova:'Resource' class in WSGI framework. This class is a container for serializers, deserializers and controller
- Better deserialization thanks to resource class. _parse_request_params has been removed
- Improved management of HTTP client errors
NOTE: this changeset does not update the framework used by API extensions.

Change-Id: I88a669ce418225c415e0da22e951762d0708e0a5
2011-12-06 09:53:11 +00:00
Brad Hall
9bab0960b6 Second round of packaging changes
This change condenses the directory structure to something more similar to
what we had before while producing similar packages.

It also introduces version.py which allows us to get the version from git tags
(or a fallback version if not available).

Fixes lp bug 889336
Fixes lp bug 888795

Change-Id: I86136bd9dbabb5eb1f8366ed665ed9b54f695124
2011-11-28 10:33:52 -08:00
Tyler Smith
1fcde53d0e blueprint quantum-packaging
Change-Id: Ica19170540b06ecddb0fbb6d340ee7a6819c1708
2011-03-07 18:02:05 -05:00
Salvatore Orlando
e44905cce4 Updating common/extensions.py in order not to instantiate a QuantumManager when retrieving plugin
Also renaming API router: APIRouterV01 --> APIRouterV1
2011-08-26 11:20:55 +01:00
Salvatore Orlando
a6064ab1f6 merge trunk
pep8 fixes
adapting CLI to API v1.0
Fixing wsgi to avoid failure with extensions
2011-08-17 22:48:56 +01:00
Salvatore Orlando
4be4c12955 Adding support for expressing format through Content-Type header
Adding action detail for port resource (Member & Collection)
2011-08-08 00:31:31 +01:00
Salvatore Orlando
851aebe7ee Cosmetic changes to unit tests for client library.
Pep8 fixes.
2011-08-04 16:56:46 +01:00
Salvatore Orlando
e1a5e6ff61 req/res alignment complete.
Status code alignment ALMOST complete (need to sort out 200 vs 202 for create ops)

Need to align unit tests.
2011-08-02 17:51:53 +01:00
Santhosh Kumar
0c5306de87 Merged from trunk 2011-08-01 11:52:39 +05:30
Salvatore Orlando
afa6cf9516 Removing extra quantum.py file from source control
removing unused import from quantum/api/__init__.py
2011-07-29 22:22:59 +01:00
Rajaram Mallya
ce1dbf0d2b Rajaram/Santhosh|quantum manager loads plugin only once, even though both extension middleware and APIRouter calls it 2011-07-25 18:45:21 +05:30
Rajaram Mallya
a444cd3bd9 Santhosh/Rajaram|latest merge from quantum and made extensions use options to load plugin 2011-07-25 14:28:52 +05:30
Salvatore Orlando
49344b17c4 Re-fixing issues with XML deserialization (changes got lost in merges with trunk)
Adapting assertions in unit tests merged from trunk to reflect changes in the API due to RFE requested by Erik Carlin
2011-07-22 10:51:22 +01:00
Salvatore Orlando
70d793c816 Merge with quantum-unit-tests 2011-07-21 17:24:24 +01:00
Deepak N
61e4811468 Santhosh/Deepak | Made supports_extension method optional for plugin, plugin will be loaded only once 2011-07-18 17:24:26 +05:30
Salvatore Orlando
8af12499a8 Adapated plugin infrastructure to allow API to pass options to plugins
Now using in-memory sqlite db for tests on FakePlugin
teardown() now 'resets' the in-memory db
Adding unit tests for APIs
2011-07-05 17:50:30 +01:00
Salvatore Orlando
dbd0fa5193 Now loading plugin before setting up routes.
Passing same plugin instance to API controllers.

Also renamed 'network_manager' to 'plugin' in API controllers.
2011-07-04 11:43:16 +01:00
Salvatore Orlando
a94c424f89 Merge trunk
Resolving conflicts
2011-06-24 14:52:17 +01:00
Salvatore Orlando
fdfa94c8ae no-commit 2011-06-24 14:05:35 +01:00
Salvatore Orlando
cc07877e10 Adding support for 'detail' action on networks objects
GET /tenants/{tenant-id}/networks/detail
returns details about all networks (id,name,number of logical ports)

GET /tenants/{tenant-id}/networks/{network-id}/detail
return complete details about a specific network, including ports and attachments
2011-06-10 15:53:11 +01:00
Santhosh
fed70a5272 Santhosh/Vinkesh | Fixed all the pep8 violations. Modified the 'req' to 'request' across all the services and wsgi so that it's consistent with other projects 2011-06-08 15:51:47 +05:30
Salvatore Orlando
15a625ba16 Fixing pep8 errors
removing excess debug lines
2011-06-07 18:25:16 +01:00
Brad Hall
90a78e410c Whitespace fixes 2011-06-03 10:26:36 -07:00
Salvatore Orlando
75b67e63e2 pep8 fixes (1st batch) 2011-05-31 18:15:00 +01:00
Salvatore Orlando
9f1c248826 First working version of Quantum API 2011-05-30 01:08:46 +01:00
Salvatore Orlando
5022c07f6b Implementing interface with plugin 2011-05-26 18:53:48 +01:00
Salvatore Orlando
3a421e759f Work in progress on network API 2011-05-24 17:45:16 +01:00
Salvatore Orlando
702e64fc52 Adding first files for quantum API 2011-05-23 21:51:00 +01:00