From 01e5ade3799531f9ef6578e353854d0d5493c75b Mon Sep 17 00:00:00 2001 From: DR695H Date: Wed, 8 May 2019 18:21:56 -0400 Subject: update readme, add demo jinja, stage1 of servmap Change-Id: Ibf7ec8a9915b03bbf25cd3c86c23fe3056b4a42a Issue-ID: TEST-152 Signed-off-by: DR695H --- robot/assets/templates/aai/customer.jinja | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 robot/assets/templates/aai/customer.jinja (limited to 'robot/assets/templates/aai/customer.jinja') 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 -- cgit 1.2.3-korg