Updates to address new HPA policies
[optf/osdf.git] / config / common_config.yaml
index bc62a58..24278d1 100644 (file)
@@ -1,8 +1,8 @@
 osdf_system:
     libpath: /opt/app/osdf/libs
     osdf_ports:
-        internal: 24699  # inside the Docker container, the app listens to this port
-        external: 14699  # clients use this port on DockerHost
+        internal: 8699  # inside the Docker container, the app listens to this port
+        external: 8698  # clients use this port on DockerHost
     osdf_ip_default: 0.0.0.0
 #        # Important Note: At deployment time, we need to ensure the port mapping is done
 #    ssl_context: ['./../etc/sniromanager.crt', './../etc/sniromanager.key']
@@ -29,15 +29,36 @@ service_info:
         vcpeHostName: requestParameters.vcpeHostName
         e2eVpnKey: requestParameters.e2eVpnKey
 
+references:
+    service_name:
+        source: request
+        value: serviceInfo.serviceName
+    subscriber_role:
+        source: SubscriberPolicy
+        value: content.properties.subscriberRole
+
 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_R2
-            scope_vcpe: OSDF_R2
-            service_name: placementInfo.serviceModelInfo.modelName
-        policy_subscriber: SubscriberPolicy
-        subscriber_name: placementInfo.subscriberInfo.subscriberName
+            vcpe_scope: OSDF_R2
+            secondary_scopes:
+                -
+                    - get_param: service_name
+                    - SubscriberPolicy
+                -
+                    - get_param: service_name
+                    - get_param: subscriber_role
     default:  # if no explicit service related information is needed
         policy_fetch: by_name
         policy_scope: none