aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/aai
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
committerDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
commit3bb6cf4b938d3e725860606d3ddaa8eecd872151 (patch)
treee03ccb5b30413d9fc7b3cef8c5ef0827d2e641d2 /robot/assets/templates/aai
parent3440942ef2c78e1a8eb07c70c1a03b3834beaecf (diff)
replace aai, closeloop, sdc with jinja
Issue-ID: TEST-158 Change-Id: I95a783f26e28512cb4fc98e50931d62001c489c6 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/assets/templates/aai')
-rw-r--r--robot/assets/templates/aai/add-connectivity.jinja (renamed from robot/assets/templates/aai/add-connectivity.template)2
-rw-r--r--robot/assets/templates/aai/add-relationship.jinja4
-rw-r--r--robot/assets/templates/aai/add-relationship.template4
-rw-r--r--robot/assets/templates/aai/add-vpn-binding.jinja (renamed from robot/assets/templates/aai/add-vpn-binding.template)2
-rw-r--r--robot/assets/templates/aai/add_availability_zone_body.jinja (renamed from robot/assets/templates/aai/add_availability_zone_body.template)2
-rw-r--r--robot/assets/templates/aai/add_complex_body.jinja (renamed from robot/assets/templates/aai/add_complex_body.template)12
-rw-r--r--robot/assets/templates/aai/add_customer.jinja (renamed from robot/assets/templates/aai/add_customer.template)14
-rw-r--r--robot/assets/templates/aai/add_demo_customer.jinja (renamed from robot/assets/templates/aai/add_demo_customer.template)54
-rw-r--r--robot/assets/templates/aai/add_service_body.jinja6
-rw-r--r--robot/assets/templates/aai/add_service_body.template6
-rw-r--r--robot/assets/templates/aai/add_tenant_body.jinja18
-rw-r--r--robot/assets/templates/aai/add_tenant_body.template18
-rw-r--r--robot/assets/templates/aai/add_vnfc_body.jinja7
-rw-r--r--robot/assets/templates/aai/add_vnfc_body.template7
-rw-r--r--robot/assets/templates/aai/add_zone_body.jinja7
-rw-r--r--robot/assets/templates/aai/add_zone_body.template7
-rw-r--r--robot/assets/templates/aai/named_query.jinja (renamed from robot/assets/templates/aai/named_query.template)2
-rw-r--r--robot/assets/templates/aai/service_subscription.jinja (renamed from robot/assets/templates/aai/service_subscription.template)2
-rw-r--r--robot/assets/templates/aai/vlb_closed_loop_hack.jinja7
-rw-r--r--robot/assets/templates/aai/vlb_closed_loop_hack.template7
20 files changed, 94 insertions, 94 deletions
diff --git a/robot/assets/templates/aai/add-connectivity.template b/robot/assets/templates/aai/add-connectivity.jinja
index a693b208..5721ccff 100644
--- a/robot/assets/templates/aai/add-connectivity.template
+++ b/robot/assets/templates/aai/add-connectivity.jinja
@@ -1,5 +1,5 @@
{
- "connectivity-id": "${connectivity_id}",
+ "connectivity-id": "{{connectivity_id}}",
"bandwidth-profile-name": "",
"vpn-type": "",
"cir": "",
diff --git a/robot/assets/templates/aai/add-relationship.jinja b/robot/assets/templates/aai/add-relationship.jinja
new file mode 100644
index 00000000..e09dbcc9
--- /dev/null
+++ b/robot/assets/templates/aai/add-relationship.jinja
@@ -0,0 +1,4 @@
+{
+ "related-to": "{{related_class_name}}",
+ "related-link": "{{related_object_url}}"
+}
diff --git a/robot/assets/templates/aai/add-relationship.template b/robot/assets/templates/aai/add-relationship.template
deleted file mode 100644
index e8550aaf..00000000
--- a/robot/assets/templates/aai/add-relationship.template
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "related-to": "${related_class_name}",
- "related-link": "${related_object_url}"
-}
diff --git a/robot/assets/templates/aai/add-vpn-binding.template b/robot/assets/templates/aai/add-vpn-binding.jinja
index 8c6743fe..f901e806 100644
--- a/robot/assets/templates/aai/add-vpn-binding.template
+++ b/robot/assets/templates/aai/add-vpn-binding.jinja
@@ -1,5 +1,5 @@
{
- "vpn-id": "${vpn_id}",
+ "vpn-id": "{{vpn_id}}",
"vpn-name": "",
"vpn-platform": "",
"vpn-type": "",
diff --git a/robot/assets/templates/aai/add_availability_zone_body.template b/robot/assets/templates/aai/add_availability_zone_body.jinja
index e955ab32..1d16dd6e 100644
--- a/robot/assets/templates/aai/add_availability_zone_body.template
+++ b/robot/assets/templates/aai/add_availability_zone_body.jinja
@@ -1,5 +1,5 @@
{
-"availability-zone-name":"${availability_zone_name}",
+"availability-zone-name":"{{availability_zone_name}}",
"hypervisor-type": "KVM",
"operational-status": "Active"
}
diff --git a/robot/assets/templates/aai/add_complex_body.template b/robot/assets/templates/aai/add_complex_body.jinja
index 3e0ac871..6ae3c0d0 100644
--- a/robot/assets/templates/aai/add_complex_body.template
+++ b/robot/assets/templates/aai/add_complex_body.jinja
@@ -1,6 +1,6 @@
{
- "complex-name": "${complex_name}",
- "physical-location-id": "${physical_location_id}",
+ "complex-name": "{{complex_name}}",
+ "physical-location-id": "{{physical_location_id}}",
"data-center-code": "example-data-center-code-val-5556",
"identity-url": "example-identity-url-val-56898",
"physical-location-type": "example-physical-location-type-val-7608",
@@ -19,21 +19,21 @@
"relationship": [
{
"related-to": "cloud-region",
- "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/${region}",
+ "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/{{region}}",
"relationship-data": [
{
"relationship-key": "cloud-region.cloud-owner",
- "relationship-value": "${cloud_owner}"
+ "relationship-value": "{{cloud_owner}}"
},
{
"relationship-key": "cloud-region.cloud-region-id",
- "relationship-value": "${region}"
+ "relationship-value": "{{region}}"
}
],
"related-to-property": [
{
"property-key": "cloud-region.owner-defined-type",
- "property-value": "${owner_defined_type}"
+ "property-value": "{{owner_defined_type}}"
}
]
}
diff --git a/robot/assets/templates/aai/add_customer.template b/robot/assets/templates/aai/add_customer.jinja
index d0ae174a..062f93bb 100644
--- a/robot/assets/templates/aai/add_customer.template
+++ b/robot/assets/templates/aai/add_customer.jinja
@@ -1,22 +1,22 @@
{
- "global-customer-id": "${global_customer_id}",
- "subscriber-name": "${subscriber_name}",
- "subscriber-type": "${subscriber_type}",
+ "global-customer-id": "{{global_customer_id}}",
+ "subscriber-name": "{{subscriber_name}}",
+ "subscriber-type": "{{subscriber_type}}",
"service-subscriptions": {
"service-subscription": [{
- "service-type": "${service1}",
+ "service-type": "{{service1}}",
"relationship-list": {
"relationship": [{
"related-to": "tenant",
"relationship-data": [{
"relationship-key": "cloud-region.cloud-owner",
- "relationship-value": "${cloud_owner1}"
+ "relationship-value": "{{cloud_owner1}}"
}, {
"relationship-key": "cloud-region.cloud-region-id",
- "relationship-value": "${cloud_region_id1}"
+ "relationship-value": "{{cloud_region_id1}}"
}, {
"relationship-key": "tenant.tenant-id",
- "relationship-value": "${tenant_id1}"
+ "relationship-value": "{{tenant_id1}}"
}]
}]
}
diff --git a/robot/assets/templates/aai/add_demo_customer.template b/robot/assets/templates/aai/add_demo_customer.jinja
index a91e3836..2c4f6c92 100644
--- a/robot/assets/templates/aai/add_demo_customer.template
+++ b/robot/assets/templates/aai/add_demo_customer.jinja
@@ -1,117 +1,117 @@
{
- "global-customer-id" : "${global_customer_id}",
- "subscriber-name" : "${subscriber_name}",
- "subscriber-type" : "${subscriber_type}",
+ "global-customer-id" : "{{global_customer_id}}",
+ "subscriber-name" : "{{subscriber_name}}",
+ "subscriber-type" : "{{subscriber_type}}",
"service-subscriptions" : {
"service-subscription" : [{
- "service-type" : "${service1}",
+ "service-type" : "{{service1}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
]
}
}, {
- "service-type" : "${service2}",
+ "service-type" : "{{service2}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
]
}
}, {
- "service-type" : "${service3}",
+ "service-type" : "{{service3}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
]
}
}, {
- "service-type" : "${service4}",
+ "service-type" : "{{service4}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
]
}
}, {
- "service-type" : "${service5}",
+ "service-type" : "{{service5}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
]
}
}, {
- "service-type" : "${service6}",
+ "service-type" : "{{service6}}",
"relationship-list" : {
"relationship" : [{
"related-to" : "tenant",
"relationship-data" : [{
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "${cloud_owner}"
+ "relationship-value" : "{{cloud_owner}}"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "${cloud_region_id}"
+ "relationship-value" : "{{cloud_region_id}}"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "${tenant_id}"
+ "relationship-value" : "{{tenant_id}}"
}
]
}
diff --git a/robot/assets/templates/aai/add_service_body.jinja b/robot/assets/templates/aai/add_service_body.jinja
new file mode 100644
index 00000000..76eab165
--- /dev/null
+++ b/robot/assets/templates/aai/add_service_body.jinja
@@ -0,0 +1,6 @@
+{
+ "service-id": "{{UUID}}",
+ "service-description": "{{service_type}}"
+}
+
+
diff --git a/robot/assets/templates/aai/add_service_body.template b/robot/assets/templates/aai/add_service_body.template
deleted file mode 100644
index ca32fd51..00000000
--- a/robot/assets/templates/aai/add_service_body.template
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "service-id": "${UUID}",
- "service-description": "${service_type}"
-}
-
-
diff --git a/robot/assets/templates/aai/add_tenant_body.jinja b/robot/assets/templates/aai/add_tenant_body.jinja
new file mode 100644
index 00000000..71430b97
--- /dev/null
+++ b/robot/assets/templates/aai/add_tenant_body.jinja
@@ -0,0 +1,18 @@
+{
+ "cloud-owner": "{{cloud_owner}}",
+ "cloud-region-id": "{{cloud_region_id}}",
+ "cloud-type": "{{cloud_type}}",
+ "owner-defined-type": "{{owner_defined_type}}",
+ "cloud-region-version": "{{cloud_region_version}}",
+ "cloud-zone": "{{cloud_zone}}",
+ {{resource_version}}
+ "tenants": {
+ "tenant": [{
+ "tenant-id": "{{tenant_id}}",
+ "tenant-name": "{{tenant_name}}"
+
+ }]
+ }
+}
+
+
diff --git a/robot/assets/templates/aai/add_tenant_body.template b/robot/assets/templates/aai/add_tenant_body.template
deleted file mode 100644
index a7dbbbf7..00000000
--- a/robot/assets/templates/aai/add_tenant_body.template
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "cloud-owner": "${cloud_owner}",
- "cloud-region-id": "${cloud_region_id}",
- "cloud-type": "${cloud_type}",
- "owner-defined-type": "${owner_defined_type}",
- "cloud-region-version": "${cloud_region_version}",
- "cloud-zone": "${cloud_zone}",
- ${resource_version}
- "tenants": {
- "tenant": [{
- "tenant-id": "${tenant_id}",
- "tenant-name": "${tenant_name}"
-
- }]
- }
-}
-
-
diff --git a/robot/assets/templates/aai/add_vnfc_body.jinja b/robot/assets/templates/aai/add_vnfc_body.jinja
new file mode 100644
index 00000000..fa32b4a8
--- /dev/null
+++ b/robot/assets/templates/aai/add_vnfc_body.jinja
@@ -0,0 +1,7 @@
+{
+"vnfc-name": "{{vnfc_name}}",
+"nfc-naming-code": "{{vnfc_nc}}",
+"nfc-function": "{{vnfc_func}}",
+"in-maint": "false",
+"is-closed-loop-disabled": "false"
+} \ No newline at end of file
diff --git a/robot/assets/templates/aai/add_vnfc_body.template b/robot/assets/templates/aai/add_vnfc_body.template
deleted file mode 100644
index 88ababd3..00000000
--- a/robot/assets/templates/aai/add_vnfc_body.template
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-"vnfc-name": "${vnfc_name}",
-"nfc-naming-code": "${vnfc_nc}",
-"nfc-function": "${vnfc_func}",
-"in-maint": "false",
-"is-closed-loop-disabled": "false"
-} \ No newline at end of file
diff --git a/robot/assets/templates/aai/add_zone_body.jinja b/robot/assets/templates/aai/add_zone_body.jinja
new file mode 100644
index 00000000..87dfaa5c
--- /dev/null
+++ b/robot/assets/templates/aai/add_zone_body.jinja
@@ -0,0 +1,7 @@
+{
+"zone-id":"{{zone_id}}",
+"zone-name":"{{zone_name}}",
+"design-type":"{{design_type}}",
+"zone-context":"{{zone_context}}",
+"status":"deployed"
+} \ No newline at end of file
diff --git a/robot/assets/templates/aai/add_zone_body.template b/robot/assets/templates/aai/add_zone_body.template
deleted file mode 100644
index 01f99c0a..00000000
--- a/robot/assets/templates/aai/add_zone_body.template
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-"zone-id":"${zone_id}",
-"zone-name":"${zone_name}",
-"design-type":"${design_type}",
-"zone-context":"${zone_context}",
-"status":"deployed"
-} \ No newline at end of file
diff --git a/robot/assets/templates/aai/named_query.template b/robot/assets/templates/aai/named_query.jinja
index de3f21f6..f4501d0f 100644
--- a/robot/assets/templates/aai/named_query.template
+++ b/robot/assets/templates/aai/named_query.jinja
@@ -9,7 +9,7 @@
{
"vserver":
{
- "vserver-name": "${vserver_name}"
+ "vserver-name": "{{vserver_name}}"
}
}
]
diff --git a/robot/assets/templates/aai/service_subscription.template b/robot/assets/templates/aai/service_subscription.jinja
index 85703581..f8ec466d 100644
--- a/robot/assets/templates/aai/service_subscription.template
+++ b/robot/assets/templates/aai/service_subscription.jinja
@@ -1,7 +1,7 @@
{
"service-subscription":[
{
- "service-type":"{$service_type}",
+ "service-type":"{{service_type}}",
"resource-version":"1473866861",
"service-instances":{
"service-instance":[
diff --git a/robot/assets/templates/aai/vlb_closed_loop_hack.jinja b/robot/assets/templates/aai/vlb_closed_loop_hack.jinja
new file mode 100644
index 00000000..bf034592
--- /dev/null
+++ b/robot/assets/templates/aai/vlb_closed_loop_hack.jinja
@@ -0,0 +1,7 @@
+{
+ "is-base-vf-module": false,
+ "persona-model-id": "{{persona_model_id}}",
+ "persona-model-version": "1.0",
+ "vf-module-id": "{{vf_module_id}}",
+ "vf-module-name": "{{vf_module_id}}"
+}
diff --git a/robot/assets/templates/aai/vlb_closed_loop_hack.template b/robot/assets/templates/aai/vlb_closed_loop_hack.template
deleted file mode 100644
index 27f9c963..00000000
--- a/robot/assets/templates/aai/vlb_closed_loop_hack.template
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "is-base-vf-module": false,
- "persona-model-id": "${persona_model_id}",
- "persona-model-version": "1.0",
- "vf-module-id": "${vf_module_id}",
- "vf-module-name": "${vf_module_id}"
-}