aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src
diff options
context:
space:
mode:
authorprakash.e <prakash.e@huawei.com>2018-08-10 23:54:16 +0530
committerprakash eswaramoorthy <prakash.e@huawei.com>2018-08-13 06:32:29 +0000
commit5c164baf5662bc8ce115746004762096b0ae28d7 (patch)
tree5b198161ba9700565edbedb6ef051accfa55470a /platform-logic/restapi-templates/src
parent0a27d056edff2bd89defeb7284641d83d25b0dd3 (diff)
SOTN siteInstance DGs
SOTN siteInstance vnf topology operation DGs Change-Id: I7018aa0c56db60d1bca0a3b234820b3128d0c111 Issue-ID: SDNC-356 Signed-off-by: Prakash E <prakash.e@huawei.com> Former-commit-id: f5b2457c6f66e4e357fe469df370d1ce8b4f0cd9
Diffstat (limited to 'platform-logic/restapi-templates/src')
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site.json46
1 files changed, 27 insertions, 19 deletions
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}]},
+ }
+ ]
+ }
}
]
}
-
-