8 Commits

Author SHA1 Message Date
Yong Sheng Gong
3cff1e7b97 Introduce files from openstack common.
Because the openstack common project does not stick to latest pep8 rules,
I have to exclude some bad-ruled files in the tox.ini and run_tests.sh.
However pep8 does not support exclude option in the format quantum/openstack/common,
so I have to exclude some of openstack common files one by one.

Also, I have changed the Qunatum Context to base on the common context.

I does not update the setup.py in our openstack common dir and the one
under quantum top dir, since it should be maintained in a consistent way
across all of openstack projects.

After this introduction, we are ready for notification feature.

Change-Id: I2729c2dc3958835374c88d704e842e613785ec14
2012-07-17 06:41:14 +08:00
Yaguang Tang
6f99f4fee9 fix bug lp:1019230,update rpc from openstack-common.
Change-Id: I498e578affef4fa9df6c50cd7284ebd7e3f9a64e
2012-07-11 00:46:59 +08:00
Kevin L. Mitchell
b3a970a5e4 Add authZ through incorporation of policy checks.
Adds the policy openstack-common module and implements policy checks
for the v2 API.  Note that this cut only addresses whole objects (i.e.,
a subnet or a network or a port), not specific fields within objects.
(This means that attributes are not filtered out based on policies.)
Implements blueprint authorization-support-for-quantum.

Change-Id: I1b52b1791a1f14f0af6508a63a40a38e440f15fe
2012-06-18 14:21:57 -05:00
Zhongyue Luo
0d3cfea2e1 Use openstack.common.exception
Fixes bug #1013040

1. Edit openstack-common.conf and import openstack.common.exception
2. Remove redundant code

Change-Id: Ia440422e283f8e6796d9a1f720d73b3bcf2f981e
2012-06-14 16:25:52 +08:00
Zhongyue Luo
dedefaeea3 Quantum should use openstack.common.jsonutils
Implements blueprint use-common-jsonutils

1. Edit openstack-common.conf and import quantum/openstack/common/jsonutils.py
2. Remove json package imports and replace with jsonutils
3. Remove json related functions in common/utils.py

Change-Id: Id5abc49175899fa4d83e613f852aaaac539ecfcb
2012-06-07 12:24:21 +08:00
Zhongyue Luo
366ac6036e Quantum should use openstack.common.importutils
Implements blueprint use-common-importutils

Change-Id: Ib71a557ea6090d5c8d789b1e4c7b17855f7ee814
2012-06-04 14:47:42 +08:00
Gary Kotton
a86c31ba15 Parse linuxbridge plugins using openstack.common.cfg
Implements the blueprint use-common-cfg

In order for the linuxbridge plugin to use the rpc code soon to be merged into
openstack-common, we need to parse our configuration using cfg. Here we
make the most simple, backwards compatible change in that direction.

The same is relevant for the openvswitch implementation

Fixes after comments.

Change-Id: I70fc1898a802cb4198f72741453283d114added2
2012-05-29 09:54:29 -04:00
Monty Taylor
8f6de697f0 Split out pip requires and aligned tox file.
Align tox.ini file with standards.
Align setup.py with openstack-common standards.

Change-Id: I333bbd66648c865a5c97ec2661359ab849274446
2012-03-14 23:20:22 -07:00