aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/aai/customer.jinja
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-05-08 18:21:56 -0400
committerDR695H <dr695h@att.com>2019-05-08 18:26:29 -0400
commit01e5ade3799531f9ef6578e353854d0d5493c75b (patch)
tree042c461aa130ed2adc57f7e0e8d8febda0e66640 /robot/assets/templates/aai/customer.jinja
parent461aa5b33b29ca1df212ba09a51e29dfcf1fe1bc (diff)
update readme, add demo jinja, stage1 of servmap
Change-Id: Ibf7ec8a9915b03bbf25cd3c86c23fe3056b4a42a Issue-ID: TEST-152 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/assets/templates/aai/customer.jinja')
-rw-r--r--robot/assets/templates/aai/customer.jinja26
1 files changed, 26 insertions, 0 deletions
diff --git a/robot/assets/templates/aai/customer.jinja b/robot/assets/templates/aai/customer.jinja
new file mode 100644
index 00000000..831bac23
--- /dev/null
+++ b/robot/assets/templates/aai/customer.jinja
@@ -0,0 +1,26 @@
+{
+ "global-customer-id": "{{global_customer_id}}",
+ "subscriber-name": "{{subscriber_name}}",
+ "subscriber-type": "{{subscriber_type}}",
+ {% if service1 %}
+ "service-subscriptions": {
+ "service-subscription": [{
+ "service-type": "{{service1}}",
+ "relationship-list": {
+ "relationship": [{
+ "related-to": "tenant",
+ "relationship-data": [
+ {%- for relationship in relationships -%}
+ {% if not loop.first %},{% endif %}
+ {
+ "relationship-key": "{{relationship.0}}",
+ "relationship-value": "{{relationship.1}}"
+ }
+ {%- endfor %}
+ ]
+ }]
+ }
+ }]
+ }
+ {% endif %}
+} \ No newline at end of file