From 7e01da537f44b15b2ae39ed5d9a71d467ec097db Mon Sep 17 00:00:00 2001 From: Zhuoyao Huang <10112215@zte.com.cn> Date: Wed, 10 Apr 2019 22:11:59 +0800 Subject: zte 3rd party controller for sdwan creating a placeholder for specific templates & DG nodes required to talk to ZTE as 3rd party domain controller. Issue-ID: SDNC-657 Change-Id: Icb774966cd9f4cd15e1beebb2dfb5194f241e4bc Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn> Former-commit-id: 22f440deb271000c1accc7abe679335e3e1916b0 --- .../src/main/json/sdwan-device-zte-add.json | 13 +++++++ .../src/main/json/sdwan-device-zte-del.json | 7 ++++ .../main/json/sdwan-inter-connect-zte-create.json | 9 +++++ .../src/main/json/sdwan-inter-connect-zte-del.json | 13 +++++++ .../src/main/json/sdwan-port-zte-add.json | 16 ++++++++ .../src/main/json/sdwan-port-zte-del.json | 7 ++++ .../src/main/json/sdwan-site-ha-zte-add.json | 25 ++++++++++++ .../src/main/json/sdwan-site-ha-zte-del.json | 25 ++++++++++++ .../src/main/json/sdwan-site-lan-zte-add.json | 7 ++++ .../src/main/json/sdwan-site-lan-zte-del.json | 7 ++++ .../src/main/json/sdwan-site-wan-zte-add.json | 45 ++++++++++++++++++++++ .../src/main/json/sdwan-site-wan-zte-del.json | 7 ++++ .../src/main/json/sdwan-site-zte-add.json | 34 ++++++++++++++++ .../src/main/json/sdwan-site-zte-del.json | 9 +++++ .../src/main/json/sdwan-tenant-zte-add.json | 17 ++++++++ .../src/main/json/sdwan-tenant-zte-del.json | 13 +++++++ 16 files changed, 254 insertions(+) create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-device-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-device-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-create.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-inter-connect-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-port-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-port-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-ha-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-lan-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-wan-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-site-zte-del.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-add.json create mode 100644 platform-logic/restapi-templates/src/main/json/sdwan-tenant-zte-del.json (limited to 'platform-logic/restapi-templates/src/main/json') 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 -- cgit 1.2.3-korg