1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
10 Sample APEX Policy in TOSCA format
11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 .. container:: paragraph
15 An example APEX policy in TOSCA format for the vCPE
16 use case can be found here:
21 vCPE <https://github.com/onap/policy-models/blob/master/models-examples/src/main/resources/policies/vCPE.apex.policy.operational.input.tosca.json>`__
26 .. container:: paragraph
28 A good starting point is the ``My First Policy`` example. It
29 describes a sales problem, to which policy can be applied.
30 The example details the policy background, shows how to use
31 the REST Editor to create a policy, and provides details for
32 running the policies. The documentation can be found:
36 - :ref:`My-First-Policy on the APEX site <apex-myFirstExample>`
41 .. container:: paragraph
43 The domain Policy-controlled Video Streaming (PCVS) contains
44 a policy for controlling video streams with different
45 strategies. It also provides details for installing an
46 actual testbed with off-the-shelve software (Mininet,
47 Floodlight, Kafka, Zookeeper). The policy model here
48 demonstrates virtually all APEX features: local context and
49 policies controlling it, task selection logic and multiple
50 tasks in a single state, AVRO schemas for context, AVOR
51 schemas for events (trigger and local), and a CLI editor
52 specification of the policy. The documentation can be found:
56 - :ref:`VPN SLA Policy on the APEX site <apex-PCVSExample>`
61 .. container:: paragraph
63 The domain Decision Maker shows a very simple policy for
64 decisions. Interesting here is that the it creates a Docker
65 image to run the policy and that it uses the APEX REST
66 applications to update the policy on the-fly. It also has
67 local context to remember past decisions, and shows how to
68 use that to no make the same decision twice in a row. The
69 documentation can be found:
73 - :ref:`Decision Maker on APEX site <apex-DecisionMakerExample>`
82 Last updated 2020-04-08 16:04:24 GMT