SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sdwan-wan-port.json
index 2e43761..ada44a3 100644 (file)
 {
     "tnps": [
         {
-            "name": ${prop.name},
-            "siteId": ${prop.siteId},
-            "deviceId": ${prop.deviceId},
-            "portId": ${prop.wanId},
+            "name": ${prop.wan.name},
+            "siteId": ${prop.wan.siteId},
+            "deviceId": ${prop.wan.deviceId},
+            "portId": ${prop.wan.devicePortId},
             "inSubInterfaces": "false",
-            "vlanId": ${prop.vlanId},
+            "vlanId": "null",
             "ipConnection": {
                 "ipv4": {
-                    "publicIP": ${prop.ipAddress},
+                    "publicIP": ${prop.wan.ip-address},
                     "accessType": "IPOE",
                     "ipMode": "Static",
-                    "customerAddress": ${prop.ipAddress},
-                    "prefixLength": ${prop.prefixLength},
-                    "providerAddress": ${prop.providerAddress},
+                    "customerAddress": ${prop.wan.ip-address},
+                    "prefixLength": ${prop.wan.prefixLength},
+                    "providerAddress": ${prop.wan.providerIpAddress},
                     "peerIp": "null",
                     "userName": "null",
                     "userKey": "null"
                 }
              },
              "transportNetworkInfo": {
-                 "transportNetworkId": ${prop.transportNetworkId},
+                 "transportNetworkId": ${prop.wan.transportNetworkId},
                  "workMode": "active"
              },
             "attributes": {
-                "inputBandwidth": ${prop.inputBandwidth},
-                "outputBandwidth": ${prop.outputBandwidth},
+                "inputBandwidth": ${prop.wan.inputBandwidth},
+                "outputBandwidth": ${prop.wan.outputBandwidth},
                 "mtu": 1500,
                 "TCPmss": 1200
             },
-            "description": ${description}
+            "description": ${prop.wan.description}
         }
     ]
-}
\ No newline at end of file
+}