From 5c164baf5662bc8ce115746004762096b0ae28d7 Mon Sep 17 00:00:00 2001 From: "prakash.e" Date: Fri, 10 Aug 2018 23:54:16 +0530 Subject: SOTN siteInstance DGs SOTN siteInstance vnf topology operation DGs Change-Id: I7018aa0c56db60d1bca0a3b234820b3128d0c111 Issue-ID: SDNC-356 Signed-off-by: Prakash E Former-commit-id: f5b2457c6f66e4e357fe469df370d1ce8b4f0cd9 --- .../src/main/json/sdwan-site.json | 46 +++++++++++++--------- 1 file changed, 27 insertions(+), 19 deletions(-) (limited to 'platform-logic/restapi-templates/src/main/json') diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site.json b/platform-logic/restapi-templates/src/main/json/sdwan-site.json index 11eee550..9d9fba4b 100644 --- a/platform-logic/restapi-templates/src/main/json/sdwan-site.json +++ b/platform-logic/restapi-templates/src/main/json/sdwan-site.json @@ -21,33 +21,41 @@ { "sites": [ { - "id": ${prop.id}, - "name": ${prop.name}, - "Locations": [ + "id": "", + "name": ${prop.site.name}, + "locations": [ { - "name": ${prop.location-name}, - "address": ${prop.location-address}, - "postcode": ${prop.location-postcode} + "name": ${prop.site.location-name}, + "address": ${prop.site.location-address}, + "postcode": ${prop.site.location-postcode}, + "latitude": ${prop.site.location-latitude}, + "longitude": ${prop.site.location-longitude} } ], - "devices": [ - { - "deviceId": ${prop.deviceId}, - "locationName": ${prop.location-name} + + "devices": [${repeat:prop.site.deviceId_length: + { + "deviceId":${prop.site.deviceId[${1}]}, + "locationName": ${prop.site.location-name}, + }, } - ], - "siteType": ${prop.type}, - "role": [${repeat:prop.roles_length: - ${prop.roles[${1}]}, + ], + + "siteType": ${prop.site.type}, + "role": [${repeat:prop.site.roles_length: + ${prop.site.roles[${1}]}, } ], - "controlPoints": [${repeat:prop.controlpoints_length: - ${prop.controlpoints[${1}]}, + "controlPoints": [${repeat:prop.site.controlpoints_length: + ${prop.site.controlpoints[${1}]}, } ], - "description": ${description} + "contact":{ + "emails":[${repeat:prop.site.email_length: + ${prop.site.email[${1}]}, + } + ] + } } ] } - - -- cgit 1.2.3-korg