OSDF migration to new Policy API
[optf/osdf.git] / config / common_config.yaml
1 osdf_system:
2     libpath: /opt/app/osdf/libs
3     osdf_ports:
4         internal: 8699  # inside the Docker container, the app listens to this port
5         external: 8698  # clients use this port on DockerHost
6     osdf_ip_default: 0.0.0.0
7 #        # Important Note: At deployment time, we need to ensure the port mapping is done
8     #ssl_context: ['./ssl_certs/oof.crt', './ssl_certs/oof_new.key']
9
10 osdf_temp:  # special configuration required for "workarounds" or testing
11     local_policies:
12         global_disabled: True
13         local_placement_policies_enabled: True
14         placement_policy_dir_vcpe: "./test/policy-local-files/new_policies/"
15         placement_policy_files_vcpe: # workaroud for policy platform glitches (or "work-arounds" for other components)
16             - Affinity_vCPE_1.json
17             - Attribute_vNS_1.json
18             #- Capacity_vGMuxInfra.json
19             #- Capacity_vG_1.json
20             - Distance_vG_1.json
21             - Distance_vGMuxInfra_1.json
22             - hpa_policy_vG_1.json
23             - hpa_policy_vGMuxInfra_1.json
24             - Placement_Optimization_1.json
25             - QueryPolicy_vCPE.json
26             - vnfPolicy_vG.json
27             - vnfPolicy_vGMuxInfra.json
28         placement_policy_dir_vfw: "./test/policy-local-files/new_policies/"
29         placement_policy_files_vfw: # workaroud for policy platform glitches (or "work-arounds" for other components)
30             #- Capacity_vFW_1.json
31             - Distance_vFW_1.json
32             - hpa_policy_vFW_1.json
33             - Placement_Optimization_1.json
34             - QueryPolicy_vFW.json
35             - vnfPolicy_vFW.json
36         placement_policy_dir_vfw_td: "./test/policy-local-files/new_policies/"
37         placement_policy_files_vfw_td:
38             - vnfPolicy_vFW_TD.json
39             - vnfPolicy_vPGN_TD.json
40             - affinity_vFW_TD.json
41             - QueryPolicy_vFW_TD.json
42 service_info:
43     vCPE:
44         vcpeHostName: requestParameters.vcpeHostName
45         e2eVpnKey: requestParameters.e2eVpnKey
46     vFW:
47         vcpeHostName: requestParameters.vcpeHostName
48         e2eVpnKey: requestParameters.e2eVpnKey
49
50 references:
51     service_name:
52         source: request
53         value: serviceInfo.serviceName
54     resource:
55         source: request
56         value: placementInfo.placementDemands.resourceModuleName
57     subscriber_role:
58         source: onap.policies.optimization.SubscriberPolicy
59         value: properties.properties.subscriberRole
60
61 policy_info:
62     prioritization_attributes:
63         policy_type:
64             - type
65         resources:
66             - properties.resources
67             - properties.objectiveParameter.parameterAttributes.resources
68         service_name:
69             - properties.services
70
71     placement:
72         policy_fetch: by_scope
73         policy_scope:
74             -
75                 scope:
76                     - OSDF_FRANKFURT
77                 geography:
78                     - US
79                 service:
80                     - get_param: service_name
81                 resources:
82                     - get_param: resource
83     #            -
84     #                - get_param: service_name
85     #                - get_param: subscriber_role
86     default:  # if no explicit service related information is needed
87         policy_fetch: by_name
88         policy_scope: none