You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

The basic policy to govern address assignment to CPs.

Definition

policy_types:
  onap.policies.AddressAssignment:
    description: governs address assignment to CPs
    derived_from: tosca.policies.Root
    properties:
      automatic_assignment:
        type: boolean
        required: false
      address_type:
        type: string
        required: false
        constraints:
          - valid_values: [IPv4, IPv6, Mac]
    # create derived types to carry extra info, like is_floating_ip, pool size/id, etc.


Derivations (Draft)

Address Assignment Policies
policy_types:
  onap.policies.address_assignment.Manual:
    derived_from: onap.policies.AddressAssignment
    description: an oversimplistic way to specify the address manually
    properties:
      automatic_assignment:
        description: always manual for this policy type
        type: boolean
        constraints:
          - equal: false
      address:
        description: |
          to assign the address in design time;
          if missing or cannot be assigned, then prompt the operator during instantiation
        type: string
        required: false
        
  onap.policies.address_assignment.Automatic:
    derived_from: onap.policies.AddressAssignment
    description: an oversimplistic way to specify the address manually
    properties:
      automatic_assignment:
        description: always automatic for this policy type
        type: boolean
        constraints:
          - equal: true
      min_address:
        type: string
        required: false
      max_address:
        type: string
        required: false
      num_addresses:
        type: string
        required: false
      plan_name:
        description: the name of a pre-allocated address pool to take the addresses from
        type: string
        required: false

  • No labels