congress/congress/db
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
..
migration Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
__init__.py Add persistant store for api 2014-11-10 22:27:01 +00:00
api.py Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
datasources.py Add get_item call in datasource_model 2016-12-19 11:57:50 +05:30
db_ds_table_data.py Specify text-length for MySQL only 2016-09-30 00:14:26 +00:00
db_library_policies.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
db_policy_rules.py Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
model_base.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00