Versions Compared

Key

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

...

In Step 9 above, theĀ PolicyDesign must send back/publish status events to SDC such as DOWNLOAD_OK, DOWNLOAD_ERROR, DEPOLYDEPLOY_OK, DEPOLYDEPLOY_ERROR, NOTIFIED.

2.2.2.4 Scripted Model Driven Policy Design

Service policies such as optimization and placement policies can be captured via TOSCA models during specified as a TOSCA Policy at design time. These models policies use a TOSCA Policy Type specification as their schemas. Therefore, scripts can be used to generate concrete policiescreate TOSCA policies using TOSCA Policy Types.



One straightforward way of generating concrete policies from Policy metadata in TOSCA, YAML, or other such modelling languages combined with types is to use directives specified in a script file is to use a command line utility. The command line utility is an API_User. It The script reads directives from a file. For each directive, it reads the policy model from the model file, and/or the directives from a script file and uses the information from those files to drive the concrete policy generation processtype using the Policy Type API, and uses the parameters of the directive to create a TOSCA Policy. It then uses the Policy API to create the policy.

2.2.3 Policy Design Process

...