summaryrefslogtreecommitdiffstats
path: root/test/policy-local-files
diff options
context:
space:
mode:
Diffstat (limited to 'test/policy-local-files')
-rw-r--r--test/policy-local-files/Affinity_vCPE_1.json17
-rw-r--r--test/policy-local-files/Capacity_vGMuxInfra.json12
-rw-r--r--test/policy-local-files/Capacity_vG_1.json12
-rw-r--r--test/policy-local-files/Distance_vGMuxInfra_1.json12
-rw-r--r--test/policy-local-files/Distance_vG_1.json12
-rw-r--r--test/policy-local-files/Placement_Optimization_1.json10
-rw-r--r--test/policy-local-files/QueryPolicy_vCPE.json18
-rw-r--r--test/policy-local-files/hpa_policy_vGMuxInfra_1.json12
-rw-r--r--test/policy-local-files/hpa_policy_vG_1.json14
-rw-r--r--test/policy-local-files/vnfPolicy_vG.json21
-rw-r--r--test/policy-local-files/vnfPolicy_vGMuxInfra.json24
11 files changed, 77 insertions, 87 deletions
diff --git a/test/policy-local-files/Affinity_vCPE_1.json b/test/policy-local-files/Affinity_vCPE_1.json
index 4a3e086..c9046dd 100644
--- a/test/policy-local-files/Affinity_vCPE_1.json
+++ b/test/policy-local-files/Affinity_vCPE_1.json
@@ -1,10 +1,10 @@
{
- "service": "affinityPolicy",
- "policyName": "oofBeijing.affinityPolicy_vcpe",
- "description": "Affinity policy for vCPE",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
- "priority": "5",
+ "service": "zone",
+ "policyName": "OSDF_R2.Affinity_vCPE_1",
+ "description": "Optimization query policy for vCPE",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
+ "priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
@@ -16,7 +16,6 @@
"category": "complex"
},
"policyType": "zone",
- "resources": ["vGMuxInfra", "vG"],
- "applicableResources": "all"
+ "resources": ["vGMuxInfra", "vG"]
}
-} \ No newline at end of file
+}
diff --git a/test/policy-local-files/Capacity_vGMuxInfra.json b/test/policy-local-files/Capacity_vGMuxInfra.json
index 0225d40..2578544 100644
--- a/test/policy-local-files/Capacity_vGMuxInfra.json
+++ b/test/policy-local-files/Capacity_vGMuxInfra.json
@@ -1,20 +1,20 @@
{
- "service": "capacityPolicy",
- "policyName": "oofBeijing.capacityPolicy_vGMuxInfra",
+ "service": "vim_fit",
+ "policyName": "OSDF_R2.Capacity_vGMuxInfra",
"description": "Capacity policy for vGMuxInfra",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "5",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
"identity": "capacity_vGMuxInfra",
- "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vim_fit"],
+ "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
"resources": ["vGMuxInfra"],
"capacityProperty": {
"controller": "multicloud",
- "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": 16, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": 40, \"unit\": \"GB\"}}"
+ "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"
},
"policyType": "vim_fit",
"applicableResources": "any"
diff --git a/test/policy-local-files/Capacity_vG_1.json b/test/policy-local-files/Capacity_vG_1.json
index f311650..c1682fa 100644
--- a/test/policy-local-files/Capacity_vG_1.json
+++ b/test/policy-local-files/Capacity_vG_1.json
@@ -1,20 +1,20 @@
{
- "service": "capacityPolicy",
- "policyName": "oofBeijing.capacityPolicy_vG",
+ "service": "vim_fit",
+ "policyName": "OSDF_R2.Capacity_vG_1",
"description": "Capacity policy for vG",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "5",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
"identity": "capacity_vG",
- "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vG", "vim_fit"],
+ "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vG"],
"resources": ["vG"],
"capacityProperty": {
"controller": "multicloud",
- "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": 16, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": 40, \"unit\": \"GB\"}}"
+ "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"
},
"policyType": "vim_fit",
"applicableResources": "any"
diff --git a/test/policy-local-files/Distance_vGMuxInfra_1.json b/test/policy-local-files/Distance_vGMuxInfra_1.json
index 992e9ec..61ec500 100644
--- a/test/policy-local-files/Distance_vGMuxInfra_1.json
+++ b/test/policy-local-files/Distance_vGMuxInfra_1.json
@@ -1,9 +1,9 @@
{
- "service": "distancePolicy",
- "policyName": "oofBeijing.distancePolicy_vGMuxInfra",
+ "service": "distance_to_location",
+ "policyName": "OSDF_R2.Distance_vGMuxInfra",
"description": "Distance Policy for vGMuxInfra",
- "templateVersion": "0.0.1",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
@@ -15,8 +15,8 @@
},
"identity": "distance-vGMuxInfra",
"resources": ["vGMuxInfra"],
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "distancePolicy"],
- "policyType": "distance_to_location",
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
+ "policyType": "distancePolicy",
"applicableResources": "any"
}
}
diff --git a/test/policy-local-files/Distance_vG_1.json b/test/policy-local-files/Distance_vG_1.json
index 07baabd..06c3ada 100644
--- a/test/policy-local-files/Distance_vG_1.json
+++ b/test/policy-local-files/Distance_vG_1.json
@@ -1,9 +1,9 @@
{
- "service": "distancePolicy",
- "policyName": "oofBeijing.distancePolicy_vG",
+ "service": "distance_to_location",
+ "policyName": "OSDF_R2.Distance_vG_1",
"description": "Distance Policy for vG",
- "templateVersion": "0.0.1",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
@@ -15,8 +15,8 @@
},
"identity": "distance-vG",
"resources": ["vG"],
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vG", "distancePolicy"],
- "policyType": "distance_to_location",
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vG"],
+ "policyType": "distancePolicy",
"applicableResources": "any"
}
}
diff --git a/test/policy-local-files/Placement_Optimization_1.json b/test/policy-local-files/Placement_Optimization_1.json
index 6d09b82..b81b15f 100644
--- a/test/policy-local-files/Placement_Optimization_1.json
+++ b/test/policy-local-files/Placement_Optimization_1.json
@@ -1,9 +1,9 @@
{
- "service": "PlacementOptimizationPolicy",
- "policyName": "oofBeijing.PlacementOptimizationPolicy_vGMuxInfra",
+ "service": "placementOptimization",
+ "policyName": "OSDF_R2.Placement_Optimization_1",
"description": "Placement Optimization Policy for vGMuxInfra",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "5",
"riskType": "test",
"riskLevel": "3",
@@ -29,7 +29,7 @@
"operator": "sum"
},
"identity": "optimization",
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG", "placementOptimization"],
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG"],
"policyType": "placementOptimization",
"objective": "minimize"
}
diff --git a/test/policy-local-files/QueryPolicy_vCPE.json b/test/policy-local-files/QueryPolicy_vCPE.json
index 03c457e..27f49d2 100644
--- a/test/policy-local-files/QueryPolicy_vCPE.json
+++ b/test/policy-local-files/QueryPolicy_vCPE.json
@@ -1,23 +1,21 @@
{
"service": "optimizationQueryPolicy",
- "policyName": "oofBeijing.queryPolicy_vCPE",
+ "policyName": "OSDF_R2.QueryPolicy_vCPE",
"description": "Optimization query policy for vCPE",
- "templateVersion": "0.0.1",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
"queryProperties": [
- {"attribute":"locationId", "attribute_location": "customerLocation", "value": ""},
- {"attribute":"id", "attribute_location": "vpnInfo.vpnId", "value": ""},
- {"attribute":"upstreamBW", "attribute_location": "vpnInfo.upstreamBW", "value": ""},
- {"attribute":"customerLatitude", "attribute_location": "customerLatitude", "value": 32.89748},
- {"attribute":"customerLongitude", "attribute_location": "customerLongitude", "value": -97.040443}
+ {"attribute":"customerLatitude", "attribute_location": "customerLatitude"},
+ {"attribute":"customerLongitude", "attribute_location": "customerLongitude"}
],
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG"],
+ "policyType": "optimizationQueryPolicy",
"serviceName": "vCPE",
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG", "optimizationQueryPolicy"],
- "policyType": "optimizationQueryPolicy"
+ "identity": "vCPE_Query_Policy"
}
}
diff --git a/test/policy-local-files/hpa_policy_vGMuxInfra_1.json b/test/policy-local-files/hpa_policy_vGMuxInfra_1.json
index a3403f0..da4ef03 100644
--- a/test/policy-local-files/hpa_policy_vGMuxInfra_1.json
+++ b/test/policy-local-files/hpa_policy_vGMuxInfra_1.json
@@ -1,18 +1,18 @@
{
"service": "hpaPolicy",
- "policyName": "oofBeijing.hpaPolicy_vGMuxInfra",
+ "policyName": "OSDF_R2.hpa_policy_vGMuxInfra_1",
"description": "HPA policy for vGMuxInfra",
- "templateVersion": "0.0.1",
- "version": "1.0",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
- "resources": ["vGMuxInfra"],
+ "resources": "vGMuxInfra",
"identity": "hpaPolicy_vGMuxInfra",
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "hpaPolicy"],
- "policyType": "hpa",
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
+ "policyType": "hpaPolicy",
"flavorFeatures": [
{
"flavorLabel": "flavor_label_vm_01",
diff --git a/test/policy-local-files/hpa_policy_vG_1.json b/test/policy-local-files/hpa_policy_vG_1.json
index 9b832f6..f50ed6d 100644
--- a/test/policy-local-files/hpa_policy_vG_1.json
+++ b/test/policy-local-files/hpa_policy_vG_1.json
@@ -1,18 +1,18 @@
{
"service": "hpaPolicy",
- "policyName": "oofBeijing.hpaPolicy_vG",
+ "policyName": "OSDF_R2.hpa_policy_vG_1",
"description": "HPA policy for vG",
- "templateVersion": "0.0.1",
- "version": "1.0",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
- "resources": ["vG"],
+ "resources": "vG",
"identity": "hpaPolicy_vG",
- "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vG", "hpaPolicy"],
- "policyType": "hpa",
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vG"],
+ "policyType": "hpaPolicy",
"flavorFeatures": [
{
"flavorLabel": "flavor_label_vm_01",
@@ -85,7 +85,7 @@
"score" : "5",
"architecture": "generic",
"hpa-feature-attributes": [
- {"hpa-attribute-key": "diskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
+ {"hpa-attribute-key": "diskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
{"hpa-attribute-key": "ephemeralDiskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
{"hpa-attribute-key": "swapMemSize", "hpa-attribute-value":"16", "operator": "=", "unit": "MB"}
]
diff --git a/test/policy-local-files/vnfPolicy_vG.json b/test/policy-local-files/vnfPolicy_vG.json
index c77cdc7..d215078 100644
--- a/test/policy-local-files/vnfPolicy_vG.json
+++ b/test/policy-local-files/vnfPolicy_vG.json
@@ -1,16 +1,16 @@
{
- "service": "VnfPolicy",
- "policyName": "oofBeijing.vnfPolicy_vG",
+ "service": "vnfPolicy",
+ "policyName": "OSDF_R2.vnfPolicy_vG",
"description": "vnfPolicy",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "6",
"riskType": "test",
"riskLevel": "3",
"guard": "False",
"content": {
"identity": "vnf_vG",
- "policyScope": ["vCPE", "INTERNATIONAL", "ip", "vG", "vnf_policy"],
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vG"],
"policyType": "vnfPolicy",
"resources": ["vG"],
"applicableResources": "any",
@@ -19,13 +19,10 @@
"inventoryProvider": "aai",
"serviceType": "",
"inventoryType": "cloud",
- "customerId": ""
- },
- {
- "inventoryProvider": "multicloud",
- "serviceType": "HNGATEWAY",
- "inventoryType": "service",
- "customerId": "21014aa2-526b-11e6-beb8-9e71128cae77"
+ "customerId": "",
+ "orchestrationStatus": "",
+ "equipmentRole": ""
+
}
]
}
diff --git a/test/policy-local-files/vnfPolicy_vGMuxInfra.json b/test/policy-local-files/vnfPolicy_vGMuxInfra.json
index 3971519..7ac6dff 100644
--- a/test/policy-local-files/vnfPolicy_vGMuxInfra.json
+++ b/test/policy-local-files/vnfPolicy_vGMuxInfra.json
@@ -1,31 +1,27 @@
{
- "service": "VnfPolicy",
- "policyName": "oofBeijing.vnfPolicy_vGMuxInfra",
+ "service": "vnfPolicy",
+ "policyName": "OSDF_R2.vnfPolicy_vGMuxInfra",
"description": "vnfPolicy",
- "templateVersion": "1702.03",
- "version": "oofBeijing",
+ "templateVersion": "OpenSource.version.1",
+ "version": "test1",
"priority": "6",
"riskType": "test",
"riskLevel": "3",
"guard": "False",
"content": {
"identity": "vnf_vGMuxInfra",
- "policyScope": ["vCPE", "INTERNATIONAL", "ip", "vGMuxInfra", "vnf_policy"],
+ "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
"policyType": "vnfPolicy",
"resources": ["vGMuxInfra"],
"applicableResources": "any",
- "vnfProperties": [
+ "vnfProperties": [
{
"inventoryProvider": "aai",
- "serviceType": "",
- "inventoryType": "cloud",
- "customerId": ""
- },
- {
- "inventoryProvider": "multicloud",
- "serviceType": "HNGATEWAY",
+ "serviceType": "vGMuxInfra",
"inventoryType": "service",
- "customerId": "21014aa2-526b-11e6-beb8-9e71128cae77"
+ "customerId": "",
+ "orchestrationStatus": "",
+ "equipmentRole": ""
}
]
}