stdVersion:
name: a1-sim-std
replicaCount: 2
+ stdVersion2:
+ name: a1-sim-std2
+ replicaCount: 2
# image registry and tag to be changed after first release of controlpanel
# Need to check the external port Availability
"kista_1",
"kista_2"
]
+ },
+ {
+ "name":"ric5",
+ "baseUrl":"https://a1-sim-std2-0.a1-sim:8185",
+ "controller": "controller1",
+ "managedElementIds":[
+ "kista_1",
+ "kista_2"
+ ]
+ },
+ {
+ "name":"ric6",
+ "baseUrl":"https://a1-sim-std2-1.a1-sim:8185",
+ "controller": "controller1",
+ "managedElementIds":[
+ "kista_1",
+ "kista_2"
+ ]
}
]
streams_publishes: |
periodSeconds: 10
readiness:
initialDelaySeconds: 20
- periodSeconds: 10
\ No newline at end of file
+ periodSeconds: 10
# one service in policy agent
# five policies in a1-sim-OSC_0
# one policy in a1-sim-STD_0
+# one policy type in a1-sim-STD2_0
+# one policy in a1-sim-STD2_0
policy_agent_host="policymanagementservice"
policy_agent_port="9080"
a1_sim_std_0_port="8085"
a1_sim_std_1_host="a1-sim-std-1.a1-sim"
a1_sim_std_1_port="8085"
+a1_sim_std2_0_host="a1-sim-std2-0.a1-sim"
+a1_sim_std2_0_port="8085"
+a1_sim_std2_1_host="a1-sim-std2-1.a1-sim"
+a1_sim_std2_1_port="8085"
httpx=http
echo "policy agent status:"
curl -skw " %{http_code}" $httpx://$a1_sim_std_1_host:$a1_sim_std_1_port/counter/interface
echo -e "\n"
+echo "ric5 version:"
+curl -skw " %{http_code}" $httpx://$a1_sim_std2_0_host:$a1_sim_std_0_port/counter/interface
+echo -e "\n"
+
+echo "ric6 version:"
+curl -skw " %{http_code}" $httpx://$a1_sim_std2_1_host:$a1_sim_std_1_port/counter/interface
+echo -e "\n"
+
echo "create policy type 1 to ric1:"
curl -X PUT -skw " %{http_code}" $httpx://$a1_sim_osc_0_host:$a1_sim_osc_0_port/policytype?id=1 -H Content-Type:application/json --data-binary @testdata/OSC/policy_type.json
echo -e "\n"
curl -X PUT -skw " %{http_code}" $httpx://$a1_sim_osc_1_host:$a1_sim_osc_1_port/policytype?id=1 -H Content-Type:application/json --data-binary @testdata/OSC/policy_type.json
echo -e "\n"
+echo "create policy type 2 to STD2 ric5:"
+curl -X PUT -skw " %{http_code}" $httpx://$a1_sim_std2_0_host:$a1_sim_std2_0_port/policytype?id=2 -H Content-Type:application/json --data-binary @testdata/STD/policy_type.json
+echo -e "\n"
+
+echo "create policy type 2 to STD2 ric6:"
+curl -X PUT -skw " %{http_code}" $httpx://$a1_sim_std2_1_host:$a1_sim_std2_1_port/policytype?id=2 -H Content-Type:application/json --data-binary @testdata/STD/policy_type.json
+echo -e "\n"
+
for i in {1..12}; do
echo "policy types from policy agent:"
curlString="curl -skw %{http_code} $httpx://$policy_agent_host:$policy_agent_port/policy_types"
res=$($curlString)
echo "$res"
- expect="[\"\",\"1\"]200"
+ expect="[\"\",\"1\",\"2\"]200"
if [ "$res" == "$expect" ]; then
echo -e "\n"
break;
curl -k -X PUT -sw " %{http_code}" -H accept:application/json -H Content-Type:application/json "$httpx://$policy_agent_host:$policy_agent_port/policy?id=2004&ric=ric1&service=service1&type=1" --data '{"scope": {"ueId": "ue3100","qosId": "qos3100"},"qosObjective": {"priorityLevel": 3104}}'
echo -e "\n"
+echo "create policy 2200 to ric5 with type1 and service1 via policy agent:"
+curl -k -X PUT -sw " %{http_code}" -H accept:application/json -H Content-Type:application/json "$httpx://$policy_agent_host:$policy_agent_port/v2/policies" --data-binary @testdata/STD/policy.json
+echo -e "\n"
+
echo "policy numbers from ric1:"
curl -skw " %{http_code}" $httpx://$a1_sim_osc_0_host:$a1_sim_osc_0_port/counter/num_instances
echo -e "\n"
echo "policy id 2100 from policy agent:"
curl -k -X GET -sw " %{http_code}" $httpx://$policy_agent_host:$policy_agent_port/policy?id=2100
-echo -e "\n"
\ No newline at end of file
+echo -e "\n"
--- /dev/null
+{
+ "ric_id": "ric5",
+ "policy_id": "2100",
+ "service_id": "service1",
+ "policy_data": {
+ "scope": {
+ "ueId": "ue3100",
+ "qosId": "qos3100"
+ },
+ "qosObjective": {
+ "priorityLevel": 3100
+ }
+ },
+ "policytype_id": "2"
+}
--- /dev/null
+{
+ "policySchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "STD_QOS_0_2_0",
+ "description": "STD QOS policy type",
+ "type": "object",
+ "properties": {
+ "scope": {
+ "type": "object",
+ "properties": {
+ "ueId": {
+ "type": "string"
+ },
+ "qosId": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "ueId",
+ "qosId"
+ ]
+ },
+ "qosObjectives": {
+ "type": "object",
+ "properties": {
+ "priorityLevel": {
+ "type": "number"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "priorityLevel"
+ ]
+ }
+ }
+ },
+ "statusSchema": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "STD_QOS_0.2.0",
+ "description": "STD QOS policy type status",
+ "type": "object",
+ "properties": {
+ "enforceStatus": {
+ "type": "string"
+ },
+ "enforceReason": {
+ "type": "string"
+ },
+ "additionalProperties": false,
+ "required": [
+ "enforceStatus"
+ ]
+ }
+ }
+ }
\ No newline at end of file
- name: A1_VERSION
value: STD_1.1.3
- name: ALLOW_HTTP
- value: {{ .Values.a1simulator.service.allowHttp | quote}}
\ No newline at end of file
+ value: {{ .Values.a1simulator.service.allowHttp | quote}}
+---
+kind: StatefulSet
+apiVersion: apps/v1
+metadata:
+ name: {{ .Values.a1simulator.stdVersion2.name }}
+ namespace: {{ include "common.namespace.nonrtric" . }}
+ generation: 1
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+ deployment.kubernetes.io/revision: '1'
+spec:
+ replicas: {{ .Values.a1simulator.stdVersion2.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+ release: {{ .Release.Name }}
+ serviceName: {{ .Values.a1simulator.name }}
+ template:
+ metadata:
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }}
+ release: {{ .Release.Name }}
+ spec:
+ hostname: {{ include "common.name.a1simulator" . }}
+ containers:
+ - name: {{ include "common.containername.a1simulator" . }}
+ image: {{ .Values.a1simulator.image.registry }}/{{ .Values.a1simulator.image.name }}:{{ .Values.a1simulator.image.tag }}
+ imagePullPolicy: {{ .Values.a1simulator.imagePullPolicy }}
+ ports:
+ - containerPort: {{ .Values.a1simulator.service.targetPort1 }}
+ protocol: TCP
+ - containerPort: {{ .Values.a1simulator.service.targetPort2 }}
+ protocol: TCP
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.a1simulator.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.a1simulator.readiness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.a1simulator.readiness.periodSeconds }}
+ livenessProbe:
+ tcpSocket:
+ port: {{ .Values.a1simulator.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.a1simulator.liveness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.a1simulator.liveness.periodSeconds }}
+ env:
+ - name: A1_VERSION
+ value: STD_2.0.0
+ - name: ALLOW_HTTP
+ value: {{ .Values.a1simulator.service.allowHttp | quote}}
stdVersion:
name: a1-sim-std
replicaCount: 2
+ stdVersion2:
+ name: a1-sim-std2
+ replicaCount: 2
+
portalapi.password = password
# URL for enrichment coordinator service
-# enrichmentcontroller.url.prefix = https://enrichment-service-container:8434
-enrichmentcontroller.url.prefix = http://enrichment-service-container:8083/ei-producer/v1
+# enrichmentcontroller.url.prefix = https://enrichmentservice:9083/ei-producer/v1
+enrichmentcontroller.url.prefix = http://enrichmentservice:9082/ei-producer/v1
# Mimic slow endpoints by defining sleep period, in milliseconds
mock.config.delay = 0
org.springframework: ERROR
org.springframework.data: ERROR
org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
- org.oransc.policyagent: INFO
+ org.onap.ccsdk.oran.a1policymanagementservice: INFO
file: /var/log/policy-agent/application.log
server: