diff options
author | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-08-23 00:41:47 +0100 |
---|---|---|
committer | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-08-23 16:56:04 +0100 |
commit | 6a2abc8402af63dd8941b4652278a6df404d781a (patch) | |
tree | d806687cf4621527e471730192f2f26c256ac311 /examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc | |
parent | a4a992216c40138cda8501ee9bed971038b530a9 (diff) |
Add docs for the examples package
This review is big because it contains examples for the whole project.
The big size is mainly due to the site.xml, logos and css files which
are repeatedly created, and more aciidoc files are needed. The pom.xml
files are changed properly.
Change-Id: I42a94e4d898529f9249ef03de908c8b1a0142c7f
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867
Diffstat (limited to 'examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc')
-rw-r--r-- | examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc b/examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc new file mode 100644 index 000000000..9bf74738b --- /dev/null +++ b/examples/examples-pcvs/src/site-docs/adoc/fragments/vpnsla/logic-establish.adoc @@ -0,0 +1,29 @@ +// +// ============LICENSE_START======================================================= +// Copyright (C) 2016-2018 Ericsson. All rights reserved. +// ================================================================================ +// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE +// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Logic: Policy Establish State + +This is the logic for the establish state. +It is the most complicated logic, since establishing a situation for a decision is the most important part of any policy. +First, the policy describes what we find (the switch block), in terms of 8 normal situations and 1 extreme error case. + +If required, it creates local context information for the problem (if it is new) or updates it (if the problem still exists). +It also calculates customer SLA downtime and checks for any SLA violations. +Finally, it creates a situation object. + +.JS Logic Policy Establish State +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-pcvs-dir}/main/resources/com/ericsson/apex/domains/pcvs/vpnsla/logic/task-establish.js[JS Logic Policy Establish State] +---- + |