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/CloudAttributePolicy_vGMuxInfra_1.json34
-rw-r--r--test/policy-local-files/CloudAttributePolicy_vG_1.json34
-rw-r--r--test/policy-local-files/DistanceToLocationPolicy_vGMuxInfra_1.json30
-rw-r--r--test/policy-local-files/DistanceToLocationPolicy_vG_1.json30
-rw-r--r--test/policy-local-files/InventoryGroup_vGMuxInfra_1.json22
-rw-r--r--test/policy-local-files/InventoryGroup_vG_1.json22
-rw-r--r--test/policy-local-files/PlacementOptimizationPolicy.json41
-rw-r--r--test/policy-local-files/ResourceInstancePolicy_vG_1.json26
-rw-r--r--test/policy-local-files/VNFPolicy_vGMuxInfra_1.json36
-rw-r--r--test/policy-local-files/VNFPolicy_vG_1.json36
-rw-r--r--test/policy-local-files/ZonePolicy_vGMuxInfra_1.json26
-rw-r--r--test/policy-local-files/ZonePolicy_vG_1.json26
12 files changed, 363 insertions, 0 deletions
diff --git a/test/policy-local-files/CloudAttributePolicy_vGMuxInfra_1.json b/test/policy-local-files/CloudAttributePolicy_vGMuxInfra_1.json
new file mode 100644
index 0000000..57c0039
--- /dev/null
+++ b/test/policy-local-files/CloudAttributePolicy_vGMuxInfra_1.json
@@ -0,0 +1,34 @@
+{
+ "service": "CloudAttributePolicy",
+ "policyName": "CloudAttributePolicy_vGMuxInfra",
+ "description": "Attribute policy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "3",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vGMuxInfra_cloud_attributes",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra"]
+ },
+ "cloudAttributeProperty": {
+ "networkRoles": {
+ "all": [
+ "vGMuxInfra.OAM",
+ "vGMuxInfra.SR_IOV_Provider2_1",
+ "vGMuxInfra.SR_IOV_Provider2_2"
+ ]
+ },
+ "complex": {
+ "any": [ ]
+ }
+ },
+ "type": "attribute",
+ "resourceInstanceType": ["vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/CloudAttributePolicy_vG_1.json b/test/policy-local-files/CloudAttributePolicy_vG_1.json
new file mode 100644
index 0000000..cbe2a88
--- /dev/null
+++ b/test/policy-local-files/CloudAttributePolicy_vG_1.json
@@ -0,0 +1,34 @@
+{
+ "service": "CloudAttributePolicy",
+ "policyName": "cloud AttributePolicy_vG",
+ "description": "Attribute policy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "10",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vG_cloud_attributes",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG"]
+ },
+ "cloudAttributeProperty": {
+ "networkRoles": {
+ "all": [
+ "vG.OAM",
+ "vG.SR_IOV_Provider2_1",
+ "vG.SR_IOV_Provider2_2"
+ ]
+ },
+ "complex": {
+ "any": [ ]
+ }
+ },
+ "type": "attribute",
+ "resourceInstanceType": ["vG"]
+ }
+}
diff --git a/test/policy-local-files/DistanceToLocationPolicy_vGMuxInfra_1.json b/test/policy-local-files/DistanceToLocationPolicy_vGMuxInfra_1.json
new file mode 100644
index 0000000..414c167
--- /dev/null
+++ b/test/policy-local-files/DistanceToLocationPolicy_vGMuxInfra_1.json
@@ -0,0 +1,30 @@
+{
+ "service": "DistanceToLocationPolicy",
+ "policyName": "DistanceToLocationPolicy_vGMuxInfra",
+ "description": "DistanceToLocationPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "3",
+ "riskType": "test",
+ "riskLevel": "2",
+ "guard": "False",
+ "content": {
+ "distanceToLocationProperty": {
+ "locationInfo": "customer_loc",
+ "distanceCondition": {
+ "parameter": "distance",
+ "value": "50000 km",
+ "operator": "less"
+ }
+ },
+ "identity": "distance-vGMuxInfra",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra"]
+ },
+ "type": "distance_to_location",
+ "resourceInstanceType": ["vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/DistanceToLocationPolicy_vG_1.json b/test/policy-local-files/DistanceToLocationPolicy_vG_1.json
new file mode 100644
index 0000000..737ee19
--- /dev/null
+++ b/test/policy-local-files/DistanceToLocationPolicy_vG_1.json
@@ -0,0 +1,30 @@
+{
+ "service": "DistanceToLocationPolicy",
+ "policyName": "DistanceToLocationPolicy_vG",
+ "description": "DistanceToLocationPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "3",
+ "riskType": "test",
+ "riskLevel": "2",
+ "guard": "False",
+ "content": {
+ "distanceToLocationProperty": {
+ "locationInfo": "customer_loc",
+ "distanceCondition": {
+ "parameter": "distance",
+ "value": "50000 km",
+ "operator": "less"
+ }
+ },
+ "identity": "distance-vG",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG"]
+ },
+ "type": "distance_to_location",
+ "resourceInstanceType": ["vG"]
+ }
+}
diff --git a/test/policy-local-files/InventoryGroup_vGMuxInfra_1.json b/test/policy-local-files/InventoryGroup_vGMuxInfra_1.json
new file mode 100644
index 0000000..20ff7f7
--- /dev/null
+++ b/test/policy-local-files/InventoryGroup_vGMuxInfra_1.json
@@ -0,0 +1,22 @@
+{
+ "service": "InventoryGroupPolicy",
+ "policyName": "InventoryGroupPolicy_vGMuxInfra",
+ "description": "InventoryGroupPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "6",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vGMuxInfra-pri-sec-2",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra"]
+ },
+ "type": "inventory_group",
+ "resourceInstanceType": ["vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/InventoryGroup_vG_1.json b/test/policy-local-files/InventoryGroup_vG_1.json
new file mode 100644
index 0000000..99ae309
--- /dev/null
+++ b/test/policy-local-files/InventoryGroup_vG_1.json
@@ -0,0 +1,22 @@
+{
+ "service": "InventoryGroupPolicy",
+ "policyName": "InventoryGroupPolicy_vG",
+ "description": "InventoryGroupPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "6",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vG-pri-sec-1",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG"]
+ },
+ "type": "inventory_group",
+ "resourceInstanceType": ["vG"]
+ }
+}
diff --git a/test/policy-local-files/PlacementOptimizationPolicy.json b/test/policy-local-files/PlacementOptimizationPolicy.json
new file mode 100644
index 0000000..7c43435
--- /dev/null
+++ b/test/policy-local-files/PlacementOptimizationPolicy.json
@@ -0,0 +1,41 @@
+{
+ "service": "PlacementOptimizationPolicy",
+ "policyName": "PlacementOptimizationPolicy",
+ "description": "PlacementOptimizationPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "5",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "objectiveParameter": {
+ "parameterAttributes": [
+ {
+ "resource": ["vGMuxInfra"],
+ "customerLocationInfo": "customer_loc",
+ "parameter": "distance",
+ "weight": "2",
+ "operator": "product"
+ },
+ {
+ "resource": ["vG"],
+ "customerLocationInfo": "customer_loc",
+ "parameter": "distance",
+ "weight": "1",
+ "operator": "product"
+ }
+ ],
+ "operator": "sum"
+ },
+ "identity": "optimization",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra","vG"]
+ },
+ "type": "placementOptimization",
+ "objective": "minimize"
+ }
+}
diff --git a/test/policy-local-files/ResourceInstancePolicy_vG_1.json b/test/policy-local-files/ResourceInstancePolicy_vG_1.json
new file mode 100644
index 0000000..21ae0e4
--- /dev/null
+++ b/test/policy-local-files/ResourceInstancePolicy_vG_1.json
@@ -0,0 +1,26 @@
+{
+ "service": "ResourceInstancePolicy",
+ "policyName": "ResourceInstancePolicy_vG",
+ "description": "ResourceInstancePolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "5",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vG-resourceInstance",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG", "vGMuxInfra"]
+ },
+ "resourceInstanceProperty": {
+ "request": "{\"test\": \"123\"}",
+ "controller": "SDN-C"
+ },
+ "type": "instance_fit",
+ "resourceInstanceType": ["vG", "vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/VNFPolicy_vGMuxInfra_1.json b/test/policy-local-files/VNFPolicy_vGMuxInfra_1.json
new file mode 100644
index 0000000..b0963d6
--- /dev/null
+++ b/test/policy-local-files/VNFPolicy_vGMuxInfra_1.json
@@ -0,0 +1,36 @@
+{
+ "service": "VNFPolicy",
+ "policyName": "VNFPolicy_vGMuxInfra",
+ "description": "VNFPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "6",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vGMuxInfra-pri-sec-1",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra"]
+ },
+ "property": [
+ {
+ "inventoryProvider": "aai",
+ "serviceType": "",
+ "inventoryType": "cloud",
+ "customerId": ""
+ },
+ {
+ "inventoryProvider": "aai",
+ "serviceType": "vGMuxInfraaaS",
+ "inventoryType": "service",
+ "customerId": "21014aa2-526b-11e6-beb8-9e71128cae77"
+ }
+ ],
+ "type": "vnfPolicy",
+ "resourceInstanceType": ["vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/VNFPolicy_vG_1.json b/test/policy-local-files/VNFPolicy_vG_1.json
new file mode 100644
index 0000000..de0a158
--- /dev/null
+++ b/test/policy-local-files/VNFPolicy_vG_1.json
@@ -0,0 +1,36 @@
+{
+ "service": "VNFPolicy",
+ "policyName": "VNFPolicy_vG",
+ "description": "VNFPolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "6",
+ "riskType": "test",
+ "riskLevel": "3",
+ "guard": "False",
+ "content": {
+ "identity": "vG-pri-sec-1",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG"]
+ },
+ "property": [
+ {
+ "inventoryProvider": "aai",
+ "serviceType": "",
+ "inventoryType": "cloud",
+ "customerId": " "
+ },
+ {
+ "inventoryProvider": "aai",
+ "serviceType": "vGaaS",
+ "inventoryType": "service",
+ "customerId": "21014aa2-526b-11e6-beb8-9e71128cae77"
+ }
+ ],
+ "type": "vnfPolicy",
+ "resourceInstanceType": ["vG"]
+ }
+}
diff --git a/test/policy-local-files/ZonePolicy_vGMuxInfra_1.json b/test/policy-local-files/ZonePolicy_vGMuxInfra_1.json
new file mode 100644
index 0000000..9f941e4
--- /dev/null
+++ b/test/policy-local-files/ZonePolicy_vGMuxInfra_1.json
@@ -0,0 +1,26 @@
+{
+ "service": "ZonePolicy",
+ "policyName": "ZonePolicy_vGMuxInfra",
+ "description": "ZonePolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "5",
+ "riskType": "test",
+ "riskLevel": "2",
+ "guard": "False",
+ "content": {
+ "identity": "zone-vGMuxInfra",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vGMuxInfra"]
+ },
+ "zoneProperty": {
+ "qualifier": "different",
+ "category": "complex"
+ },
+ "type": "zone",
+ "resourceInstanceType": ["vGMuxInfra"]
+ }
+}
diff --git a/test/policy-local-files/ZonePolicy_vG_1.json b/test/policy-local-files/ZonePolicy_vG_1.json
new file mode 100644
index 0000000..8104f6b
--- /dev/null
+++ b/test/policy-local-files/ZonePolicy_vG_1.json
@@ -0,0 +1,26 @@
+{
+ "service": "ZonePolicy",
+ "policyName": "ZonePolicy_vG",
+ "description": "ZonePolicy",
+ "templateVersion": "1702.03",
+ "version": "1707",
+ "priority": "5",
+ "riskType": "test",
+ "riskLevel": "2",
+ "guard": "False",
+ "content": {
+ "identity": "zone-vG",
+ "policyScope": {
+ "serviceType": ["vCPE"],
+ "geoRegion": ["US", "INTERNATIONAL"],
+ "networkType": ["ip"],
+ "resourceInstanceType": ["vG"]
+ },
+ "zoneProperty": {
+ "qualifier": "different",
+ "category": "complex"
+ },
+ "type": "zone",
+ "resourceInstanceType": ["vG"]
+ }
+}