\r
1. Enable dcae-slice-analysis-ms in values.yaml. When using the helm chart of OOM to pull up the whole onap environment, dcae-slice-analysis-ms will be automatically installed.\r
\r
- .. code-block:: bash\r
+ .. code-block:: yaml\r
\r
dcae-slice-analysis-ms:\r
enabled: true\r
\r
1. Uncomment the following lines. "duration" is the interval of a thread in policy sync container to retrieve latest policy from XCAML PDP engine. The unit of "duration" is seconds.\r
\r
- .. code-block:: bash\r
+ .. code-block:: yaml\r
\r
dcaePolicySyncImage: onap/org.onap.dcaegen2.deployments.dcae-services-policy-sync:1.0.1\r
policies:\r
\r
request body: policy_type.json\r
\r
- .. code-block:: bash\r
+ .. code-block:: json\r
\r
{\r
"tosca_definitions_version": "tosca_simple_yaml_1_1_0",\r
\r
request body: slicems_config_policy.json\r
\r
- .. code-block:: bash\r
+ .. code-block:: json\r
\r
{\r
"tosca_definitions_version": "tosca_simple_yaml_1_1_0",\r
}\r
\r
3. Deploy the policy\r
+\r
command\r
\r
.. code-block:: bash\r
\r
- curl -w %{http_code} --silent -k --user 'username:password' -X POST "https://policyPAPApi:6969/policy/pap/v1/pdps/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @push.json\r
+ curl -w %{http_code} --silent -k --user 'username:password' -X POST "https://policyPAPApi:6969/policy/pap/v1/pdps/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @push.json\r
\r
request body: push.json\r
\r
- .. code-block:: bash\r
+ .. code-block:: json\r
\r
- {\r
- "policies": [\r
- {\r
- "policy-id": "onap.dcae.slicems.config",\r
- "policy-version": 1\r
- }\r
- ]\r
- }\r
+ {\r
+ "policies": [\r
+ {\r
+ "policy-id": "onap.dcae.slicems.config",\r
+ "policy-version": 1\r
+ }\r
+ ]\r
+ }\r
\r
4. Verify in SliceMS that configurations received\r
\r
\r
How to Develop Your Own Runtime Configuration\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
+\r
1. Create your own policy type\r
2. Create a policy based on your policy type\r
3. Deploy the policy\r
4. Verify in SliceMS that configurations received. (Needs to write code in SliceMS to deal with your configurations in advance.)\r
-\r