CCVPN extension lan-port templates 78/83678/1
authorprakash.e <prakash.e@huawei.com>
Fri, 29 Mar 2019 05:41:47 +0000 (11:11 +0530)
committerprakash.e <prakash.e@huawei.com>
Fri, 29 Mar 2019 05:42:08 +0000 (11:12 +0530)
lan-port - device-port, bridge-domain and ip-subnets templates

Change-Id: I94797ee8f58c8817d578a263a631ca0ac485dd26
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 30a75914225f313fac7a40b6bc2a2d0d782fc112

platform-logic/restapi-templates/src/main/json/sdlan-bridge-domain.json [new file with mode: 0644]
platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets-del.json [new file with mode: 0644]
platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets.json [new file with mode: 0644]
platform-logic/restapi-templates/src/main/json/sdlan-port-del.json [new file with mode: 0644]
platform-logic/restapi-templates/src/main/json/sdlan-port.json [new file with mode: 0644]

diff --git a/platform-logic/restapi-templates/src/main/json/sdlan-bridge-domain.json b/platform-logic/restapi-templates/src/main/json/sdlan-bridge-domain.json
new file mode 100644 (file)
index 0000000..1d0f8bd
--- /dev/null
@@ -0,0 +1,17 @@
+{
+  "bridgeDomains": [
+   {
+     "id": "",
+     "deviceId": ${prop.lan.deviceId},
+     "ports": [
+       {
+          "id": ${prop.lan.devicePortId},
+          "tagMode": "untag"
+       }
+    ],
+     "vlanId":  ${prop.lan.vlanId},
+     "description": "spoke2 test vlan L2 port"
+   }
+ ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets-del.json b/platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets-del.json
new file mode 100644 (file)
index 0000000..4e42e61
--- /dev/null
@@ -0,0 +1,8 @@
+{
+    "tnps": [
+        {
+            "id": ${prop.lan.lanPortId},            
+        }
+    ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets.json b/platform-logic/restapi-templates/src/main/json/sdlan-ip-subnets.json
new file mode 100644 (file)
index 0000000..85ccf15
--- /dev/null
@@ -0,0 +1,37 @@
+{
+  "IPSubnets":[
+  {
+    "vpnId": ${prop.vpnId},
+    "siteId": ${prop.lan.siteId},
+    "deviceId": ${prop.lan.deviceId},
+    "id": "",
+    "interfaceType": "interface",
+    "interfaceName": "interface",
+    "portId": ${prop.lan.devicePortId},
+    "vlanId": null,
+    "ipAddress": ${prop.lan.ip-address},
+    "prefixLength": ${prop.lan.prefixLength},
+    "vrrp": {
+      "enable": false,
+      "vrrpId": null,
+      "virtualIpAddress": null,
+      "defaultRole": null,
+      "preemptDelay": null
+    },
+    "dhcp": {
+      "enable": false,
+      "dhcpServiceType": null,
+      "dhcpServer": null,
+      "dhcpRelay": null
+    },
+    "securityZone": "trust",
+    "proxyArp": "false",
+    "attributes": {
+       "mtu": null,
+       "TCPmss": null
+      },
+    "description": "hub1 L3 test"
+  }
+]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdlan-port-del.json b/platform-logic/restapi-templates/src/main/json/sdlan-port-del.json
new file mode 100644 (file)
index 0000000..914bb66
--- /dev/null
@@ -0,0 +1,8 @@
+{
+    "tnps": [
+        {
+            "id": ${prop.lan.devicePortId},            
+        }
+    ]
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/sdlan-port.json b/platform-logic/restapi-templates/src/main/json/sdlan-port.json
new file mode 100644 (file)
index 0000000..a499d9a
--- /dev/null
@@ -0,0 +1,23 @@
+{
+    "ports": [
+        {
+            "id": "",
+            "portType": ${prop.lan.portType},
+            "portNumber": ${prop.lan.portNumber},
+            "deviceId": ${prop.lan.deviceId},
+            "portSwitch": ${prop.lan.portSwitch},
+            "linkInfo": {
+                 "linkType": "Ethernet",
+                 "cellular": null,
+                 "atm": null,
+                 "ethernet": {
+                      "negotiationMode": "manual",
+                      "media": "copper",
+                      "duplex": "half",
+                      "speed": 10
+                 }
+            }
+        }
+    ]
+}
+