Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is also possible to generate policy templates using MDD (Model Driven Development) techniques. Policies are expressed using a DSL (Domain Specific Language) or a policy specification environment for a particular application domain. For example, policies for specifying SLAs could be expressed in a SLA DSL and policies for managing SON features could be generated from a visual SON management tool. The ONAP Policy framework provides an API that allows tool chains to create policy templates.

2.2.2 Policy

...

Creation

PolicyDevelopment is a component for ingestion of models for policies and any optional support code, rules, tasks, or flow specifications. Policy Design PolicyDevelopment can consume policy models organically and not require any development work. The PolicyCreation function of PolicyDevelopment creates a concrete policy from a policy template. 

Policy Design Policies can occur be created in several ways during a "design" process. At design time, a service designer and/or operations team can use the models specified on a policy template to express and capture a policy at its highest abstraction level. Alternatively, the logic of the policy can be expressed using a specific policy language if desired.

...

A number of mechanisms for  policy design that creation are supported in ONAP. The process in the ONAP Policy Framework for generating a concrete PolicyDevelopment for creating a policy is the same for all mechanisms. The most general mechanism for creating a concrete policy is using the RESTful Policy Design API, which provides a full interface to the templating and concrete policy generation support of the Policy Framework PolicyDevelopment. This API may be exercised directly using utilities such as curl. The Policy Framework  PolicyDevelopment provides a command line tool that is a loose wrapper around the API. It also provides a general purpose Policy GUI in the ONAP Portal for policy generationcreation, which again is a general purpose wrapper around the Policy Design policy creation API. The Policy GUI can interpret any TOSCA Model ingested and flexibly presents a GUI for a user to create policies from.

...