...
Code Block | ||
---|---|---|
| ||
policy_types: onap.policypolicies.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)
Code Block | ||||
---|---|---|---|---|
| ||||
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 |