blob: cb8fa8d30e9577fe4cf83497e071c5be9c3078cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
Policy Examples
***************
.. contents::
:depth: 3
Sample APEX Policy in TOSCA format
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. container:: paragraph
An example APEX policy in TOSCA format for the vCPE
use case can be found here:
.. container:: ulist
- `APEX TOSCA Policy
vCPE <https://github.com/onap/policy-models/blob/master/models-examples/src/main/resources/policies/vCPE.apex.policy.operational.input.tosca.json>`__
My First Policy
^^^^^^^^^^^^^^^
.. container:: paragraph
A good starting point is the ``My First Policy`` example. It
describes a sales problem, to which policy can be applied.
The example details the policy background, shows how to use
the REST Editor to create a policy, and provides details for
running the policies. The documentation can be found:
.. container:: ulist
- :ref:`My-First-Policy on the APEX site <apex-myFirstExample>`
VPN SLA
^^^^^^^
.. container:: paragraph
The domain Policy-controlled Video Streaming (PCVS) contains
a policy for controlling video streams with different
strategies. It also provides details for installing an
actual testbed with off-the-shelve software (Mininet,
Floodlight, Kafka, Zookeeper). The policy model here
demonstrates virtually all APEX features: local context and
policies controlling it, task selection logic and multiple
tasks in a single state, AVRO schemas for context, AVOR
schemas for events (trigger and local), and a CLI editor
specification of the policy. The documentation can be found:
.. container:: ulist
- :ref:`VPN SLA Policy on the APEX site <apex-PCVSExample>`
Decision Maker
^^^^^^^^^^^^^^
.. container:: paragraph
The domain Decision Maker shows a very simple policy for
decisions. Interesting here is that the it creates a Docker
image to run the policy and that it uses the APEX REST
applications to update the policy on the-fly. It also has
local context to remember past decisions, and shows how to
use that to no make the same decision twice in a row. The
documentation can be found:
.. container:: ulist
- :ref:`Decision Maker on APEX site <apex-DecisionMakerExample>`
.. container::
:name: footer
.. container::
:name: footer-text
2.3.0-SNAPSHOT
Last updated 2020-04-08 16:04:24 GMT
|