congress/congress/api
Eric Kao 94fdc38c86 Add policy creation with rules or from policy library
persistent_create_policy_with_rules method added to agnostic runtime
to transactionally create policy along with rules. The main work is
done by the persistent_insert_rules method extended to allow creation
of the target policy along with the rule inserts.

Database transactions added in persistent_insert_rules to make sure
all changes (policy add and rules insert) can be committed or rolled
back together.

DB table locking expanded to the `policies` table in the policy
creation case to prevent conflicting policy changes from other nodes.

policy_model add_item API method extended to accept policy item with
rules, (exclusive) or parameter specifying ID of library policy to
activate.

Partially implements: blueprint policy-library
Partial-Bug: 1693622

Change-Id: I2a83ac11b7014d417ff7553f602a8bb96a9adc34
2017-07-17 16:26:24 -07:00
..
system Remove outdated changes 2016-12-19 14:38:58 +05:30
__init__.py Move API specific code to api subdirectory 2014-06-20 13:19:23 -07:00
action_model.py Cleanup old dse code in API models (part-2) 2016-08-22 21:14:19 +00:00
api_utils.py Check DB only to detect duplicate DS name on add 2016-09-22 13:50:26 -07:00
application.py Migrate harness to DSE2 2016-04-19 14:58:41 -07:00
base.py policy library DB interface, DSE service, API 2017-06-25 21:57:20 -07:00
datasource_model.py Refactor datasource synchronizer 2017-01-16 12:13:06 +05:30
error_codes.py Make policy rule requests gives 404 (not 400) when policy not found 2016-09-22 19:42:06 -07:00
library_policy_model.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
policy_model.py Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
router.py policy library DB interface, DSE service, API 2017-06-25 21:57:20 -07:00
row_model.py Check DB only to detect duplicate DS name on add 2016-09-22 13:50:26 -07:00
rule_model.py Check DB only to detect duplicate DS name on add 2016-09-22 13:50:26 -07:00
schema_model.py TrivialFix: Remove logging import unused 2016-08-26 10:48:47 +07:00
status_model.py Remove logging import unused 2017-02-28 02:09:17 +00:00
table_model.py Cleanup old dse code in API models (part-2) 2016-08-22 21:14:19 +00:00
versions.py specify webob Response charset 2017-01-17 23:45:22 -08:00
webservice.py policy library DB interface, DSE service, API 2017-06-25 21:57:20 -07:00