Fix slice selection
[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         local_slice_selection_policies_enabled: True
15         placement_policy_dir_vcpe: "./test/policy-local-files/"
16         placement_policy_files_vcpe: # workaroud for policy platform glitches (or "work-arounds" for other components)
17             - Affinity_vCPE_1.json
18             - Attribute_vNS_1.json
19             #- Capacity_vGMuxInfra.json
20             #- Capacity_vG_1.json
21             - Distance_vG_1.json
22             - Distance_vGMuxInfra_1.json
23             - hpa_policy_vG_1.json
24             - hpa_policy_vGMuxInfra_1.json
25             - Placement_Optimization_1.json
26             - QueryPolicy_vCPE.json
27             - vnfPolicy_vG.json
28             - vnfPolicy_vGMuxInfra.json
29         placement_policy_dir_vfw: "./test/policy-local-files/"
30         placement_policy_files_vfw: # workaroud for policy platform glitches (or "work-arounds" for other components)
31             #- Capacity_vFW_1.json
32             - Distance_vFW_1.json
33             - hpa_policy_vFW_1.json
34             - Placement_Optimization_1.json
35             - QueryPolicy_vFW.json
36             - vnfPolicy_vFW.json
37         placement_policy_dir_vfw_td: "./test/policy-local-files/"
38         placement_policy_files_vfw_td:
39             - vnfPolicy_vFW_TD.json
40             - vnfPolicy_vPGN_TD.json
41             - Affinity_vFW_TD.json
42             - QueryPolicy_vFW_TD.json
43         slice_selection_policy_dir_embb-nst: "./test/policy-local-files/slice-selection-files/"
44         slice_selection_policy_files_embb-nst:
45             - query_policy_nsi.json
46             - threshold_policy_nsi.json
47             - vnf_policy_nsi_shared_case.json
48
49 service_info:
50     vCPE:
51         vcpeHostName: requestParameters.vcpeHostName
52         e2eVpnKey: requestParameters.e2eVpnKey
53     vFW:
54         vcpeHostName: requestParameters.vcpeHostName
55         e2eVpnKey: requestParameters.e2eVpnKey
56
57 references:
58     service_name:
59         source: request
60         value: serviceInfo.serviceName
61     resource:
62         source: request
63         value: placementInfo.placementDemands.resourceModuleName
64     subscriber_role:
65         source: onap.policies.optimization.SubscriberPolicy
66         value: properties.properties.subscriberRole
67     resource_sharing_level:
68         source: request
69         value: serviceProfile.resourceSharingLevel
70     reuse_preference:
71         source: request
72         value: preferReuse
73
74 policy_info:
75     prioritization_attributes:
76         policy_type:
77             - type
78         resources:
79             - properties.resources
80             - properties.objectiveParameter.parameterAttributes.resources
81         service_name:
82             - properties.services
83
84     slice_selection:
85         policy_fetch: by_scope
86         policy_scope:
87             -
88                 scope:
89                   - get_param: resource_sharing_level
90                   - get_param: reuse_preference
91                 services:
92                     - get_param: service_name
93                 resources:
94                     - get_param: service_name
95
96     subnet_selection:
97         policy_fetch: by_scope
98         policy_scope:
99             - scope:
100                   - OSDF_GUILIN
101               services:
102                   - get_param: service_name
103               resources:
104                   - get_param: service_name
105
106     placement:
107         policy_fetch: by_scope
108         policy_scope:
109             -
110                 scope:
111                     - OSDF_FRANKFURT
112                 geography:
113                     - US
114                 services:
115                     - get_param: service_name
116                 resources:
117                     - get_param: resource
118     #            -
119     #                - get_param: service_name
120     #                - get_param: subscriber_role
121     default:  # if no explicit service related information is needed
122         policy_fetch: by_name
123         policy_scope: none
124
125 PCI:
126     ML:
127         average_ho_threshold: 10000
128         latest_ho_threshold: 500
129     DES:
130         service_id: ho_metric
131         filter:
132             interval: 10
133     ml_enabled: false