summaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-04-25 13:32:54 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-25 13:32:54 +0000
commit022ddaa68801fbdf99e715ecd8e6e28a7258127b (patch)
tree26dea1f74f8f7e8afc7e16ac36dffc114b7441c7 /platform-logic
parent0395fded3d7c04fff3f9fa54503df8fe318742ca (diff)
parent99e9c35d5aa5766cea9c3eb08e58cea2dcf6e9a5 (diff)
Merge "SDWAN port templates"
Former-commit-id: 3911362969fc1d329cb9fbc07b414be70820a780
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-port-cellular.json18
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-port-ethernet.json21
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-wan-port-dhcp.json45
-rw-r--r--platform-logic/restapi-templates/src/main/json/sdwan-wan-port-static.json45
4 files changed, 129 insertions, 0 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-port-cellular.json b/platform-logic/restapi-templates/src/main/json/sdwan-port-cellular.json
new file mode 100644
index 00000000..b274c1bf
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-port-cellular.json
@@ -0,0 +1,18 @@
+{
+ "ports": [
+ {
+ "portType": ${prop.wan.portType},
+ "portNumber": ${prop.wan.portNumber},
+ "deviceId": ${prop.wan.deviceId},
+ "portSwitch": "layer3-port",
+ "linkInfo": {
+ "linkType": "Cellular",
+ "cellular": {
+ "apn" : ${prop.wan.apn-name}
+ },
+ "atm": null,
+ "ethernet": null
+ }
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-port-ethernet.json b/platform-logic/restapi-templates/src/main/json/sdwan-port-ethernet.json
new file mode 100644
index 00000000..d24cf4f1
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-port-ethernet.json
@@ -0,0 +1,21 @@
+{
+ "ports": [
+ {
+ "portType": ${prop.wan.portType},
+ "portNumber": ${prop.wan.portNumber},
+ "deviceId": ${prop.wan.deviceId},
+ "portSwitch": "layer3-port",
+ "linkInfo": {
+ "linkType": "Ethernet",
+ "cellular": null,
+ "atm": null,
+ "ethernet": {
+ "negotiationMode": "auto",
+ "media": "copper",
+ "duplex": "half",
+ "speed": 10
+ }
+ }
+ }
+ ]
+}
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-wan-port-dhcp.json b/platform-logic/restapi-templates/src/main/json/sdwan-wan-port-dhcp.json
new file mode 100644
index 00000000..58cf7969
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-wan-port-dhcp.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": null,
+ "accessType": "IPoE",
+ "ipMode": "DHCP",
+ "customerAddress": "",
+ "prefixLength": null,
+ "providerAddress": "",
+ "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-wan-port-static.json b/platform-logic/restapi-templates/src/main/json/sdwan-wan-port-static.json
new file mode 100644
index 00000000..9825b6e6
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/sdwan-wan-port-static.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": null,
+ "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}
+ }
+ ]
+}