Fixed tosca models, updated code and policies
[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/"
15         placement_policy_files_vcpe: # workaroud for policy platform glitches (or "work-arounds" for other components)
16             - Affinity_vCPE_1.json
17             #- Capacity_vGMuxInfra.json
18             #- Capacity_vG_1.json
19             - Distance_vG_1.json
20             - Distance_vGMuxInfra_1.json
21             - hpa_policy_vG_1.json
22             - hpa_policy_vGMuxInfra_1.json
23             - Placement_Optimization_1.json
24             - QueryPolicy_vCPE.json
25             - vnfPolicy_vG.json
26             - vnfPolicy_vGMuxInfra.json
27         placement_policy_dir_vfw: "./test/policy-local-files/"
28         placement_policy_files_vfw: # workaroud for policy platform glitches (or "work-arounds" for other components)
29             #- Capacity_vFW_1.json
30             - Distance_vFW_1.json
31             - hpa_policy_vFW_1.json
32             - Placement_Optimization_1.json
33             - QueryPolicy_vFW.json
34             - vnfPolicy_vFW.json
35 service_info:
36     vCPE:
37         vcpeHostName: requestParameters.vcpeHostName
38         e2eVpnKey: requestParameters.e2eVpnKey
39     vFW:
40         vcpeHostName: requestParameters.vcpeHostName
41         e2eVpnKey: requestParameters.e2eVpnKey
42
43 references:
44     service_name:
45         source: request
46         value: serviceInfo.serviceName
47     subscriber_role:
48         source: SubscriberPolicy
49         value: content.properties.subscriberRole
50
51 policy_info:
52     prioritization_attributes:
53         policy_type:
54             - content.policyType
55         resources:
56             - content.resources
57             - content.objectiveParameter.parameterAttributes.resources
58         service_name:
59             - content.serviceName
60
61     placement:
62         policy_fetch: by_scope
63         policy_scope:
64             default_scope: OSDF_CASABLANCA
65             vcpe_scope: OSDF_CASABLANCA
66             vfw_scope: OSDF_CASABLANCA
67             secondary_scopes:
68                 -
69                     - get_param: service_name
70                     - US
71     #            -
72     #                - get_param: service_name
73     #                - get_param: subscriber_role
74     default:  # if no explicit service related information is needed
75         policy_fetch: by_name
76         policy_scope: none