aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/restapi-templates')
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-device-zte-add.json13
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-device-zte-del.json7
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-create.json9
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-del.json13
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-port-zte-add.json16
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-port-zte-del.json7
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-add.json25
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-del.json25
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-add.json7
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-del.json7
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-add.json45
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-del.json7
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-zte-add.json34
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-site-zte-del.json9
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-add.json17
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-del.json13
16 files changed, 254 insertions, 0 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-add.json
new file mode 100644
index 00000000..53dfc86e
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-add.json
@@ -0,0 +1,13 @@
+{
+ "devices": [
+ {
+ "esn": ${prop.device.esn},
+ "deviceModel": ${prop.device.deviceModel},
+ "name": ${prop.device.name},
+ "siteId": null,
+ "description": ${prop.device.description},
+ "systemIp": ${prop.device.systemIP},
+ "tags": null
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-del.json
new file mode 100644
index 00000000..efe5fdd0
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-device-zte-del.json
@@ -0,0 +1,7 @@
+{
+ "deviceIds": [${repeat:prop.devices_length:
+ ${prop.devices[${1}]},
+ }
+ ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-create.json b/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-create.json
new file mode 100644
index 00000000..d6814d5c
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-create.json
@@ -0,0 +1,9 @@
+{
+ "vpns": [
+ {
+ "name": ${prop.name},
+ "id": ${prop.vpn1Id}
+ }
+ ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-del.json
new file mode 100644
index 00000000..11412b41
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-del.json
@@ -0,0 +1,13 @@
+{
+ "vpns": [
+ {
+ "name": ${prop.name},
+ "id": ${prop.vpn1Id},
+ "siteIds": [
+ ${repeat:prop.siteIds_length:
+ ${prop.siteIds[${1}]},
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-add.json
new file mode 100644
index 00000000..8d937586
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-add.json
@@ -0,0 +1,16 @@
+{
+ "ports": [
+ {
+ "portType": ${prop.wan.portType},
+ "portNumber": ${prop.wan.portNumber},
+ "deviceId": ${prop.wan.deviceId},
+ "portSwitch": "layer3-port",
+ "linkInfo": {
+ "linkType": "Ethernet",
+ "ethernet": {
+ "negotiationMode": "auto"
+ }
+ }
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-del.json
new file mode 100644
index 00000000..e801839c
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-port-zte-del.json
@@ -0,0 +1,7 @@
+{
+ "ports": [
+ {
+ "id": ${prop.wan.devicePortId},
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-add.json
new file mode 100644
index 00000000..a871f114
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-add.json
@@ -0,0 +1,25 @@
+{
+ "bpgAsNum": 65101,
+ "vpnType": "dsvpn",
+ "siteScale":"30",
+ "dsvpnIPpool": ["100.1.0.0/16"],
+ "innerTunnelIPpool": [
+ "101.1.0.0/16"
+ ],
+ "interConnectIPpool": "102.1.0.0/16",
+ "transportNetworks": [
+ {
+ "name": "net001",
+ "routingDomain": "routing001",
+ "description": "string"
+ }
+ ],
+ "routingDomain":[{
+ "name": "routing001",
+ "ipsecEncryption":false
+ }],
+ "ipsecEncryptionParameter": {
+ "encrptionAlgorithm":"AES128",
+ "preSharedKey": "Admin@12134=========================================="
+ }
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-del.json
new file mode 100644
index 00000000..a871f114
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-del.json
@@ -0,0 +1,25 @@
+{
+ "bpgAsNum": 65101,
+ "vpnType": "dsvpn",
+ "siteScale":"30",
+ "dsvpnIPpool": ["100.1.0.0/16"],
+ "innerTunnelIPpool": [
+ "101.1.0.0/16"
+ ],
+ "interConnectIPpool": "102.1.0.0/16",
+ "transportNetworks": [
+ {
+ "name": "net001",
+ "routingDomain": "routing001",
+ "description": "string"
+ }
+ ],
+ "routingDomain":[{
+ "name": "routing001",
+ "ipsecEncryption":false
+ }],
+ "ipsecEncryptionParameter": {
+ "encrptionAlgorithm":"AES128",
+ "preSharedKey": "Admin@12134=========================================="
+ }
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-add.json
new file mode 100644
index 00000000..93b68f71
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-add.json
@@ -0,0 +1,7 @@
+{
+ "vpns": [
+ {
+ "id": ${prop.vpn-id}
+ }
+ ]
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-del.json
new file mode 100644
index 00000000..93b68f71
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-del.json
@@ -0,0 +1,7 @@
+{
+ "vpns": [
+ {
+ "id": ${prop.vpn-id}
+ }
+ ]
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-add.json
new file mode 100644
index 00000000..55e603ec
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-add.json
@@ -0,0 +1,45 @@
+{
+ "tnps": [
+ {
+ "name": ${prop.wan.name},
+ "siteId": ${prop.wan.siteId},
+ "deviceId": ${prop.wan.deviceId},
+ "portId": ${prop.wan.devicePortId},
+ "inSubInterface": false,
+ "vlanId": "null",
+ "ipConnection": {
+ "ipv4": {
+ "publicIP": ${prop.wan.ip-address},
+ "accessType": "IPoE",
+ "ipMode": "Static",
+ "customerAddress": ${prop.wan.ip-address},
+ "prefixLength": ${prop.wan.prefixLength},
+ "providerAddress": ${prop.wan.providerIpAddress},
+ "peerIp": "null",
+ "userName": "null",
+ "userKey": "null"
+ }
+ },
+ "transportNetworkInfo": {
+ "transportNetworkId": ${prop.wan.transportNetworkId},
+ "workMode": "active"
+ },
+ "attributes": {
+ "inputBandwidth": ${prop.wan.inputBandwidth},
+ "outputBandwidth": ${prop.wan.outputBandwidth},
+ "mtu": 1500,
+ "TCPmss": 1200
+ },
+ "ntp": [
+ {
+ "serverIP": "11.11.11.11",
+ "authentication": false,
+ "mode": "MD5",
+ "authKey": "123456",
+ "authId": 123
+ }
+ ],
+ "description": ${prop.wan.description}
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-del.json
new file mode 100644
index 00000000..bdd22166
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-del.json
@@ -0,0 +1,7 @@
+{
+ "tnps": [
+ {
+ "id": ${prop.wan.wanPortId},
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-add.json
new file mode 100644
index 00000000..1e50e76f
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-add.json
@@ -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---------------"
+ }
+ ]
+}
+
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-del.json
new file mode 100644
index 00000000..daa6a335
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-zte-del.json
@@ -0,0 +1,9 @@
+{
+ "sites": [
+ {
+ "id": ${prop.site.siteId}
+ }
+ ]
+}
+
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-add.json b/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-add.json
new file mode 100644
index 00000000..ed6161b8
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-add.json
@@ -0,0 +1,17 @@
+{
+ "routes": [
+ {
+ "id": ${prop.route.id},
+ "vpnId": ${prop.vpnId},
+ "siteId": ${prop.route.siteId},
+ "deviceId": ${prop.route.deviceId},
+ "destinationAddressMask": ${prop.route.providerIpAddress},
+ "priority": 60,
+ "nextHopType": "ip-address",
+ "ipAddress": ${prop.route.ipAddress},
+ "track": false,
+ "target": null
+ }
+ ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-del.json
new file mode 100644
index 00000000..6161b1bd
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-del.json
@@ -0,0 +1,13 @@
+{
+ "tenantName": ${prop.customer-id},
+ "tenantEmail": ${prop.userEmail},
+ "tenantPhone": "8888888888",
+ "tenantDescription": "This is a test tenant created by ONAP",
+ "tenantAddress": "Road123",
+ "limitAccountNum": 1000,
+ "userAccount": ${prop.userAccount},
+ "userEmail": ${prop.userEmail},
+ "sendInitEmailEnable": "true",
+ "countryCode": "CN",
+ "userPassword": "Test@12345"
+} \ No newline at end of file