diff options
author | Sirisha_Manchikanti <sirisha.manchikanti@est.tech> | 2021-05-07 15:17:52 +0100 |
---|---|---|
committer | Sirisha_Manchikanti <sirisha.manchikanti@est.tech> | 2021-05-13 09:00:52 +0100 |
commit | f83411a86e2277adae69e780e8511913d61a0f17 (patch) | |
tree | d75f197e703270cda608c9bd0d236f7ce8c12e13 /runtime/src/test/resources/clds/templates | |
parent | cac5cc982413ab9593186d308eda8936e9603ad9 (diff) |
Modular structure of clamp including controlloop
This commit is the first commit that puts in multi module structure while
changing the existing CLAMP code as little as possible.
It adds a structure where common, models, participant and runtime are direct children under clamp,
and current clamp code is moved under runtime. This runtime directory will host controlloop
runtime code in later commits.
Issue-ID: POLICY-3215
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'runtime/src/test/resources/clds/templates')
9 files changed, 188 insertions, 0 deletions
diff --git a/runtime/src/test/resources/clds/templates/dcae-deployment-template.json b/runtime/src/test/resources/clds/templates/dcae-deployment-template.json new file mode 100644 index 000000000..d4891747e --- /dev/null +++ b/runtime/src/test/resources/clds/templates/dcae-deployment-template.json @@ -0,0 +1,9 @@ +{ + "serviceTypeId": "???", + "inputs": { + "aaiEnrichmentHost": "10.0.1.1", + "enableAAIEnrichment": "true", + "subscriberHostName": "10.0.11.1", + "publisherHostName": "10.0.11.1" + } +} diff --git a/runtime/src/test/resources/clds/templates/dcae-template.json b/runtime/src/test/resources/clds/templates/dcae-template.json new file mode 100644 index 000000000..b76baf2d4 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/dcae-template.json @@ -0,0 +1,26 @@ +{ + "properties": { + "service_name": "", + "service_ids": [ + ], + "vnf_ids": [ + ], + "location_ids": [ + ] + }, + "template": { + "tca": { + "dcae": { + "inputTopic": "", + "outputTopic": "", + "closedLoopControlName": "", + "closedLoopEventClient": "configuration.dcae.microservice.tca.xml", + "policyName": "", + "policyScope": "DCAE", + "policyVersion": "v0.0.1", + "serviceConfigurations": { + } + } + } + } +} diff --git a/runtime/src/test/resources/clds/templates/globalProperties.json b/runtime/src/test/resources/clds/templates/globalProperties.json new file mode 100644 index 000000000..067063ea2 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/globalProperties.json @@ -0,0 +1,104 @@ +{ + "tca": { + "tname": "New_Set", + "tcaInt": "1", + "tcaVio": "1", + "eventName": { + "vLoadBalancer": "vLoadBalancer", + "vFirewallBroadcastPackets": "vFirewallBroadcastPackets", + "Measurement_vGMUX":"Measurement_vGMUX" + }, + "fieldPathM": { + "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value": "packetLossRate", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta":"receivedTotalPacketsDelta" + }, + "operator": { + ">": "GREATER", + ">=": "GREATER_OR_EQUAL", + "=": "EQUAL", + "<=": "LESS_OR_EQUAL", + "<": "LESS" + }, + "opsPolicy": { + "POLICY_test_X": "POLICY_test_X", + "POLICY_test_Y": "POLICY_test_Y" + }, + "controlLoopSchemaType": { + "": "", + "VM": "VM", + "VNF": "VNF" + }, + "closedLoopEventStatus": { + "": "", + "ONSET": "ONSET", + "ABATED": "ABATED" + } + }, + "global": { + "actionSet": { + "vnfRecipe": "VNF" + }, + "location": { + "DC1": "Data Center 1", + "DC2": "Data Center 2", + "DC3": "Data Center 3" + } + }, + "policy": { + "pname": "0", + "timeout": 345, + "vnfRecipe": { + "": "", + "Restart": "Restart", + "Rebuild": "Rebuild", + "Migrate": "Migrate", + "HealthCheck": "Health Check", + "ModifyConfig": "Modify Config", + "VF Module Create":"VF Module Create", + "VF Module Delete":"VF Module Delete", + "Reroute":"Reroute" + }, + "maxRetries": "3", + "retryTimeLimit": 180, + "resource": { + "vCTS": "vCTS", + "v3CDB": "v3CDB", + "vUDR": "vUDR", + "vCOM": "vCOM", + "vRAR": "vRAR", + "vLCS": "vLCS", + "vUDR-BE": "vUDR-BE", + "vDBE": "vDBE" + }, + "parentPolicyConditions": { + "Failure_Retries": "Failure: Max Retries Exceeded", + "Failure_Timeout": "Failure: Time Limit Exceeded", + "Failure_Guard": "Failure: Guard", + "Failure_Exception": "Failure: Exception", + "Failure": "Failure: Other", + "Success": "Success" + } + }, + "shared": { + "byService": { + "": { + "vf": { + "": "" + }, + "location": { + "": "" + }, + "alarmCondition": { + "": "" + } + } + }, + "byVf": { + "": { + "vfc": { + "": "" + } + } + } + } +} diff --git a/runtime/src/test/resources/clds/templates/sdc-decode-service_ids.json b/runtime/src/test/resources/clds/templates/sdc-decode-service_ids.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/runtime/src/test/resources/clds/templates/sdc-decode-service_ids.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/runtime/src/test/resources/clds/templates/sdc-template.json b/runtime/src/test/resources/clds/templates/sdc-template.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/runtime/src/test/resources/clds/templates/sdc-template.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/runtime/src/test/resources/clds/templates/tca-policy-template.json b/runtime/src/test/resources/clds/templates/tca-policy-template.json new file mode 100644 index 000000000..559aacb29 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/tca-policy-template.json @@ -0,0 +1,19 @@ +{ + "service": "tca_policy", + "version": "1.1.0", + "location": "SampleServiceLocation", + "configName": "SampleConfigName", + "uuid": "test", + "policyScope": "CLAMP", + "templateVersion": "OpenSource.version.1", + "policyName": "MicroService", + "description": "MicroService Policy", + "priority": "1", + "riskType": "SampleRiskType", + "riskLevel": "1", + "guard": "False", + "content": { + "tca_policy": { + } + } +} diff --git a/runtime/src/test/resources/clds/templates/tca-template.json b/runtime/src/test/resources/clds/templates/tca-template.json new file mode 100644 index 000000000..892fc0d62 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/tca-template.json @@ -0,0 +1,14 @@ +{ + "domain": "measurementsForVfScaling", + "metricsPerEventName": [ + { + "eventName": "???", + "controlLoopSchemaType": "VNF", + "policyScope": "DCAE", + "policyName": "???", + "policyVersion": "v0.0.1", + "thresholds": [ + ] + } + ] +} diff --git a/runtime/src/test/resources/clds/templates/tca-thresholds-template.json b/runtime/src/test/resources/clds/templates/tca-thresholds-template.json new file mode 100644 index 000000000..b67e96321 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/tca-thresholds-template.json @@ -0,0 +1,9 @@ +{ + "closedLoopControlName": "???", + "version": "1.0.2", + "fieldPath": "?????", + "thresholdValue": 0, + "direction": "???", + "severity": "MAJOR", + "closedLoopEventStatus": "???" +} diff --git a/runtime/src/test/resources/clds/templates/ui-location-default.json b/runtime/src/test/resources/clds/templates/ui-location-default.json new file mode 100644 index 000000000..c0043d988 --- /dev/null +++ b/runtime/src/test/resources/clds/templates/ui-location-default.json @@ -0,0 +1,5 @@ +{ + "DC1": "Data Center 1", + "DC2": "Data Center 2", + "DC3": "Data Center 3" +} |