Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed syntax for guard policies

...

Code Block
languageyml
titleBase Policy type definition for onap.policies.controlloop.Guard
linenumberstrue
collapsetrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
  - onap.policies.controlloop.Guard:
      derived_from: tosca.policies.Root
      version: 1.0.0
      description: GuardBase Policies for Control Loop Operational Policies

1.2 onap.policies.controlloop.guard.FrequencyLimiter Policy Type

Code Block
languageyml
titlePolicy Typefor Frequency Limiter Guard Policy
linenumberstrue
collapsetrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
  - onap.policies.controlloop.Guard:
      derived_from: tosca.policies.Root
      version: 1.0.0
      description: Guard definition of guard Policies for Control Loop Operational Policies
  - onap.policies.controlloop.guard.FrequencyLimiter:
      derived_from: onap.policies.controlloop.Guard
      version: 1.0.0
      description: Supports limiting the frequency of actions being taken by a Actor.
      properties:
        frequency_policy:
          type: map
          description:
          entry_schema:
            type: onap.datatypes.guard.FrequencyLimiter
data_types:
  - onap.datatypes.guard.FrequencyLimiter:
      derived_from: tosca.datatypes.Root
      properties:
        actor:
          type: string
          description: Specifies the Actor
          required: true
        recipe:
          type: string
          description: Specified the Recipe
          required: true
        time_windowcontrolLoopName:
          type: scalar-unit.timestring
          description: An optional Thespecific timecontrol windowloop to countapply thethis actionsguard againstpolicy.
          required: truefalse
        limittarget:
          type: integerstring
          description: TheAn limit
optional specific VNF to apply this     required: trueguard to.
          constraintsrequired:
            - greater_than: 0 false
        time_range:
          type: tosca.datatypes.TimeInterval
          description: An optional range of time during the day the frequencyMin/Max limit is valid for.
          required: false
        controlLoopName:
          type: string
          description: An optional specific control loop to apply this guard to.
          required: false
        target:
          type: string
          description: An optional specific VNF to apply this guard to.
          required: false

...

1.2 onap.policies.controlloop.guard.

...

FrequencyLimiter Policy Type

Code Block
languageyml
titlePolicy Type for Blacklist Guard PoliciesTypefor Frequency Limiter Guard Policy
linenumberstrue
collapsetrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
 - onap.policies.controlloop.Guard:
     derived_from: tosca.policies.Root
     version: 1.0.0
     description: Guard Policies for Control Loop Operational Policies
  - onap.policies.controlloop.guard.BlacklistFrequencyLimiter:
      derived_from: onap.policies.controlloop.Guard
      version: 1.0.0
      description: Supports limiting the blacklistfrequency of VNF'sactions frombeing performingtaken controlby loopa actions onActor.
      properties:
        blacklisttime_policywindow:
          type: mapscalar-unit.time
          description:
 The time window to count the    entry_schema:actions against.
            typerequired: onap.datatypes.guard.Blacklist
data_types:true
  - onap.datatypes.guard.Blacklist:
      derived_from: tosca.datatypes.Rootlimit:
      properties:
        actor:
          type: stringinteger
          description: SpecifiesThe the Actorlimit
          required: true
          recipeconstraints:
          type: string
 - greater_than:        description: Specified the Recipe
          required: true0


1.3 onap.policies.controlloop.guard.Blacklist Policy Type

Code Block
languageyml
titlePolicy Type for Blacklist Guard Policies
linenumberstrue
collapsetrue
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
  onap.policies.controlloop.guard.Blacklist:
        timederived_range:from: onap.policies.controlloop.Guard
          typeversion: tosca1.datatypes0.TimeInterval0
          description: AnSupports optional rangeblacklist of timeVNF's duringfrom theperforming daycontrol theloop blacklist is valid foractions on.
          required: falseproperties:
        controlLoopNameblacklist:
          type: stringlist
          description: AnList optional specific control loop to apply this guard to.of VNF's
          required: falsetrue
        blacklist:
          type: list
          description: List of VNF's
entry_schema:
               requiredtype: true
string

1.4 onap.policies.controlloop.guard.MinMax Policy Type

...

Code Block
languageyml
titlePolicy Type for Min/Max VF Module Policies
linenumberstrue
collapsetrue
policy_types:
  - onap.policies.controlloop.Guard:
      derived_from: tosca.policies.Root
      version: 1.0.0
      description: Guard Policies for Control Loop Operational Policies
  -tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
  onap.policies.controlloop.guard.MinMax:
      derived_from: onap.policies.controlloop.Guard
      version: 1.0.0
      description: Supports Min/Max number of VF Modules
      properties:
        minmax_policy:
          type: map
          description:
          entry_schema:
            type: onap.datatypes.guard.MinMax
data_types:
  - onap.datatypes.guard.MinMax:
      derived_from: tosca.datatypes.Root
      properties:
        actor:
          type: string
          description: Specifies the Actor
          required: true
        recipe:
          type: string
          description: Specified the Recipe
          required: true
        time_range:
          type: tosca.datatypes.TimeInterval
          description: An optional range of time during the day the Min/Max limit is valid for.
          required: false
        controlLoopName:
          type: string
          description: An optional specific control loop to apply this guard to.
          required: false
        min_vf_module_instances:
          type: integer
          required: true
          description: The minimum instances of this VF-Module

        max_vf_module_instances:
          type: integer
          required: false
          description: The maximum instances of this VF-Module

2.0 Operational Policy Type

...