]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Adds the 'public network' concept to Quantum
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 26 Jul 2012 08:10:02 +0000 (01:10 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 13 Aug 2012 10:34:18 +0000 (03:34 -0700)
commitf3b64410af40fd59310afefbc6081b2564dafdf9
tree60b8a99b5bd452bfcef06a382d0ec4948f7c7632
parentf01dafb01071a5285fd43e3905394cb1efbc8cb0
Adds the 'public network' concept to Quantum

Implements blueprint quantum-v2-public-networks

This patch allows Quantum to handle public networks. It modifies the
API adding a new attribute to the network resource ('shared')
and enhances the policy engine in order to handle the behaviour of
the service wrt shared networks.
Policy.json specifies a default behaviour which can be changed by
the administrator, even at runtime.
Tests added to test_db_plugin validate 'obvious' behaviour - such as
that only the ports belonging to a given tenant should be returned
even when they are queried on a public network.
Tests added to test_policy instead validate the changes added to the
policy engine.

Change-Id: I0087d449a677ed29357cd3cb4d8580bece940fdf
etc/policy.json
quantum/api/v2/attributes.py
quantum/api/v2/base.py
quantum/common/exceptions.py
quantum/db/db_base_plugin_v2.py
quantum/db/models_v2.py
quantum/policy.py
quantum/tests/unit/test_api_v2.py
quantum/tests/unit/test_db_plugin.py
quantum/tests/unit/test_policy.py
quantum/tests/unit/testlib_api.py