NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / restapi-templates / src / main / json / sdwan-site-spoke.json
diff --git a/sdnc-a1-controller/oam/platform-logic/restapi-templates/src/main/json/sdwan-site-spoke.json b/sdnc-a1-controller/oam/platform-logic/restapi-templates/src/main/json/sdwan-site-spoke.json
new file mode 100644 (file)
index 0000000..1e50e76
--- /dev/null
@@ -0,0 +1,34 @@
+{
+    "sites": [
+        {
+            "id": "",
+            "name": ${prop.site.name},
+            "locations": [
+                {
+                     "name": ${prop.site.location-name},
+                     "address": ${prop.site.location-address},
+                     "postcode": ${prop.site.location-postcode}
+                }
+            ],
+           "devices": [${repeat:prop.site.deviceId_length:
+                  {
+                      "deviceId": ${prop.site.deviceId[${1}]},
+                      "locationName": ${prop.site.location-name},
+                  },
+                }
+           ],
+            "siteType": ${prop.site.type},
+            "role": [${repeat:prop.site.roles_length:
+                       ${prop.site.roles[${1}]},
+                      }
+                    ],               
+            "controlPoints": [${repeat:prop.site.controlpoints_length:
+                                ${prop.site.controlpoints[${1}]},
+                                }
+                             ],            
+            "description": "--------role:dsvpn-hub---------------"
+        }
+    ]
+}
+
+