congress.harness module

congress.harness module

congress.harness.create2(node_id=None, bus_id=None, existing_node=None, policy_engine=True, datasources=True, api=True)

Get Congress up.

Creates a DseNode if one is not provided and adds policy_engine, datasources, api to that node.

Param

node_id is node_id of DseNode to be created

Param

bus_id is partition_id of DseNode to be created

Param

existing_node is a DseNode (optional; in lieu of previous 2 params)

Param

policy_engine controls whether policy_engine is included

Param

datasources controls whether datasources are included

Param

api controls whether API is included

Returns

DseNode

congress.harness.create_api()

Return service that encapsulates api logic for DSE2.

congress.harness.create_api_models(bus)

Create all the API models and return as a dictionary for DSE2.

congress.harness.create_datasources(bus)

Create and register datasource services .

congress.harness.create_json_ingester_datasources(bus)
congress.harness.create_policy_engine()

Create policy engine and initialize it using the api models.

congress.harness.create_policy_library_service()

Create policy library service.

congress.harness.initialize_policy_engine(engine)

Initialize the policy engine using the API.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.