Sumit Naiksatam [Fri, 5 Aug 2011 09:59:54 +0000 (02:59 -0700)]
Loading of device-specific plugins and drivers is done dynamically by setting configuration.
All configuration is driven through configuration files place in the conf directory.
Each .ini conf file contains info on the configuration.
README file updated to reflect all the changes.
Fixed issue with delete_network deleting the network even when attachments were present.
Fixed issue with port id generation.
Somik Behera [Tue, 2 Aug 2011 19:40:57 +0000 (12:40 -0700)]
Merging the brand new Quantum-client-library feature.
Thanks to lp:tylesmit for this contribution to the Quantum project.
All, client, CLI, dashboard, Quantum API client, should now start
using this client library as our defacto "SDK" to program against
Quantum's Cloud Networking fabric.
rohitagarwalla [Mon, 1 Aug 2011 06:46:15 +0000 (23:46 -0700)]
persistence of l2network & ucs plugins using mysql
- db_conn.ini - configuration details of making a connection to the database
- db_test_plugin.py - contains abstraction methods for storing database values in a dict and unit test cases for DB testing
- l2network_db.py - db methods for l2network models
- l2network_models.py - class definitions for the l2 network tables
- ucs_db.py - db methods for ucs models
- ucs_models.py - class definition for the ucs tables
dynamic loading of the 2nd layer plugin db's based on passed arguments
Create, Delete, Get, Getall, Update database methods at - Quantum, L2Network and Ucs
Unit test cases for create, delete, getall and update operations for L2Network and Ucs plugins
pep8 checks done
branch based off revision 34 plugin-framework
changes after review comments -
merged the latest changes from plugin-framework branch - revision 39
confirming to the new directory structure and moving all db related modules into cisco/db folder
updated db_test_plugin.py
- added import of cisco constants module
- added getLogger to LOG for logging component name
- updated import module paths for l2network_models/db and ucs_models/db to use the new directory structure
- updated (rearranged) imports section to obey openstack alphabetical placement convention
updated db_conn.ini
- updated database name from cisco_naas to quantum_l2network
unit test cases ran successfully and pep8 checks done again
-------------s This line and the following will be ignored --------------
added:
quantum/plugins/cisco/db/db_conn.ini
quantum/plugins/cisco/db/db_test_plugin.py
quantum/plugins/cisco/db/l2network_db.py
quantum/plugins/cisco/db/l2network_models.py
quantum/plugins/cisco/db/ucs_db.py
quantum/plugins/cisco/db/ucs_models.py
modified:
quantum/plugins/cisco/README
pending merges:
rohitagarwalla 2011-07-31 [merge] merged the latest changes from plugin-framework branch - revision 39
rohitagarwalla 2011-07-29 persistence of l2network & ucs plugins using mysql
rohitagarwalla [Mon, 1 Aug 2011 03:31:42 +0000 (20:31 -0700)]
merged the latest changes from plugin-framework branch - revision 39
conforming to the new cisco plugin directory structure and moving all db related modules into cisco/db folder
updated db_test_plugin.py
- added import of cisco constants module
- added LOG.getLogger for logging component name
- updated import module paths for l2network_models/db and ucs_models/db to use the new directory structure
- updated (rearranged) imports section to obey openstack alphabetical placement convention
updated db_conn.ini
- updated database name from cisco_naas to quantum_l2network
unit test cases ran successfully and pep8 checks done again
Dan Wendlandt [Sun, 31 Jul 2011 18:53:36 +0000 (11:53 -0700)]
remove PortCount attribute of network object, as it is not in the spec and was causing us to hit bug 818321 (note: this commit does not fix the underlyingproblem with xml deserialization, it just makes sure we don't hit it with the existing API code)
persistence of l2network & ucs plugins using mysql
- db_conn.ini - configuration details of making a connection to the database
- db_test_plugin.py - contains abstraction methods for storing database values in a dict and unit test cases for DB testing
- l2network_db.py - db methods for l2network models
- l2network_models.py - class definitions for the l2 network tables
- ucs_db.py - db methods for ucs models
- ucs_models.py - class definition for the ucs tables
dynamic loading of the 2nd layer plugin db's based on passed arguments
Create, Delete, Get, Getall, Update database methods at - Quantum, L2Network and Ucs
Unit test cases for create, delete, getall and update operations for L2Network and Ucs plugins
pep8 checks done
branch based off revision 34 plugin-framework
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
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
- Unit tests will use FakePlugin
- FakePlugin adapted to db API with sqlite
- db Models updated to inherit from generic Quantum Base model (provides utility functions and capabilities for treating db objects as dicts - see nova.db.models.NovaBase)
- functional tests commented out temporarily. Will un-comment when code for starting actual service is in place