...
Legacy configuration in common.config and also a draft config according to the new payload.
Column | ||
---|---|---|
| ||
Code Block | ||
| ||
...
policy_info:
prioritization_attributes:
policy_type:
- content.policyType
resources:
- content.resources
- content.objectiveParameter.parameterAttributes.resources
service_name:
- content.serviceName
placement:
policy_fetch: by_scope
policy_scope:
default_scope: OSDF_DUBLIN //This part could be removed
vcpe_scope: OSDF_DUBLIN
vfw_scope: OSDF_DUBLIN
td_scope: OSDF_DUBLIN
secondary_scopes:
-
- get_param: service_name //Better to be changed as KV pair
- US
# -
# - get_param: service_name
# - get_param: subscriber_role
default: # if no explicit service related information is needed
policy_fetch: by_name
policy_scope: none | ||
Column | ||
|
Draft common config for OSDF
Code Block | ||
---|---|---|
| ||
... policy_info: prioritization_attributes: policy_type: - content.policyType resources: - content.resources - content.objectiveParameter.parameterAttributes.resources service_name: - content.serviceName placement: policy_fetch: by_scope policy_scope: - scopes: //needed or not? - geography: - US - services: - get_param: service_name - scope - get_param: subscriber_role # - # - get_param: service_name # - get_param: subscriber_role default: # if no explicit service related information is needed policy_fetch: by_name policy_scope: none |
Change in code
Change in the rest call to policy framework
Since we totally change the uri to call with, there're quite many changes in the rest call.
A. The header 'ClientAuth' and 'Environment' are no longer needed.
B. The uri, username and password should be changed accordingly.
Change in retrieval method
Do we still need that get_by_name method in OSDF?