feat:mock local json data for ccvpn detail page 23/95723/2
authorcyuamber <xuranyjy@chinamobile.com>
Mon, 16 Sep 2019 08:39:06 +0000 (16:39 +0800)
committerTao Shen <shentao@chinamobile.com>
Mon, 16 Sep 2019 09:41:19 +0000 (09:41 +0000)
Change-Id: I96ce2196781da06eae5ba3054bfe710fc5f34a93
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/mock/json/uui-lcm_services_updateService.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getAllottedResources.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getConnectivityInfo.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getExtAaiId.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getHostUrl.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByVpnId.json [new file with mode: 0644]
usecaseui-portal/src/app/mock/json/uui-sotn_getPnfInfo.json [new file with mode: 0644]

diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_services_updateService.json b/usecaseui-portal/src/app/mock/json/uui-lcm_services_updateService.json
new file mode 100644 (file)
index 0000000..d99f770
--- /dev/null
@@ -0,0 +1,5 @@
+{
+
+  "operationId": "e151059a-d924-4629-845f-264db19e50b4"
+
+}
\ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getAllottedResources.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getAllottedResources.json
new file mode 100644 (file)
index 0000000..6c10929
--- /dev/null
@@ -0,0 +1,122 @@
+{
+  "allotted-resource": [
+    {
+      "id": "8beee9a7-abf0-4c98-8073-1d4d03e50033",
+      "description": "sdwan-attachment",
+      "selflink": "",
+      "model-invariant-id": "3d369bb8-5546-41d4-a3e7-a2557295ae40",
+      "model-version-id": "78ed8099-90a5-49b4-a400-89f38a7cbe6e",
+      "resource-version": "1537857961665",
+      "orchestration-status": "",
+      "operational-status": "",
+      "type": "",
+      "role": "spoke",
+      "allotted-resource-name": "sdwan ar",
+      "access-provider-id": "",
+      "access-client-id": "",
+      "access-topology-id": "",
+      "access-node-id": "",
+      "access-ltp-id": "",
+      "cvlan": "",
+      "vpn-name": "SDWANVPNInfra",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "service-instance",
+            "relationship-label": "org.onap.relationships.inventory.Uses",
+            "related-link": "/aai/v13/business/customers/customer/demo/service-subscriptions/service-subscription/ccvpn/service-instances/service-instance/15e88f8e-473f-4d88-92f8-6739a42baa2g",
+            "relationship-data": [
+              {
+                "relationship-key": "customer.global-customer-id",
+                "relationship-value": "demo"
+              },
+              {
+                "relationship-key": "service-subscription.service-type",
+                "relationship-value": "ccvpn"
+              },
+              {
+                "relationship-key": "service-instance.service-instance-id",
+                "relationship-value": "15e88f8e-473f-4d88-92f8-6739a42baa2g"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "service-instance.service-instance-name",
+                "property-value": "SDWANVPNInfra"
+              }
+            ]
+          }
+        ]
+      }
+    },
+    {
+      "id": "28f2b69e-c489-48fa-b974-166104eb15c9",
+      "description": "sotn-attachment",
+      "selflink": "",
+      "model-invariant-id": "d92ce7ca-ca87-4830-972e-83ae9857ded7",
+      "model-version-id": "3704879e-b07e-4a15-b8fd-f047f966a261",
+      "resource-version": "1537858263268",
+      "orchestration-status": "",
+      "operational-status": "",
+      "type": "",
+      "role": "spoke",
+      "allotted-resource-name": "sotn ar",
+      "access-provider-id": "",
+      "access-client-id": "",
+      "access-topology-id": "",
+      "access-node-id": "",
+      "access-ltp-id": "",
+      "cvlan": "",
+      "vpn-name": "SOTNVPNInfra",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "service-instance",
+            "relationship-label": "org.onap.relationships.inventory.Uses",
+            "related-link": "/aai/v13/business/customers/customer/demo/service-subscriptions/service-subscription/ccvpn/service-instances/service-instance/32cd906f-ee7a-4ecf-b1c3-2fce4d59f8c0",
+            "relationship-data": [
+              {
+                "relationship-key": "customer.global-customer-id",
+                "relationship-value": "demo"
+              },
+              {
+                "relationship-key": "service-subscription.service-type",
+                "relationship-value": "ccvpn"
+              },
+              {
+                "relationship-key": "service-instance.service-instance-id",
+                "relationship-value": "32cd906f-ee7a-4ecf-b1c3-2fce4d59f8c0"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "service-instance.service-instance-name",
+                "property-value": "SOTNVPNInfra"
+              }
+            ]
+          },
+          {
+            "related-to": "p-interface",
+            "relationship-label": "org.onap.relationships.inventory.Uses",
+            "related-link": "/aai/v13/network/pnfs/pnf/11.11.11.11/p-interfaces/p-interface/nodeId-11.11.11.11-ltpId-36",
+            "relationship-data": [
+              {
+                "relationship-key": "pnf.pnf-name",
+                "relationship-value": "11.11.11.11"
+              },
+              {
+                "relationship-key": "p-interface.interface-name",
+                "relationship-value": "nodeId-79.79.79.79-ltpId-2"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "p-interface.prov-status"
+              }
+            ]
+          }
+        ]
+      }
+    }
+  ]
+}
\ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getConnectivityInfo.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getConnectivityInfo.json
new file mode 100644 (file)
index 0000000..967ec98
--- /dev/null
@@ -0,0 +1,94 @@
+{
+  "connectivity": [
+    {
+      "connectivity-id": "4424ea5a-3603-4040-baa9-4046ed533fe5",
+      "bandwidth-profile-name": "vpn1",
+      "vpn-type": "ethernet",
+      "color-aware": "true",
+      "coupling-flag": "true",
+      "etht-svc-name": "vpn1",
+      "access-provider-id": "",
+      "access-client-id": "",
+      "access-topology-id": "",
+      "access-node-id": "",
+      "access-ltp-id": "",
+      "connectivity-selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/32cd906f-ee7a-4ecf-b1c3-2fce4d59f8c0/service-data/networks/network/4424ea5a-3603-4040-baa9-4046ed533fe5/network-data/",
+      "operational-status": "Active",
+      "model-customization-id": "2bafc8aa-c60c-4a17-a658-db4cbca07fac",
+      "model-invariant-id": "5d0ada6b-de04-4624-9410-3baab839cd6f",
+      "model-version-id": "15e21930-3248-4148-b071-a2a9be1f9889",
+      "resource-version": "1537623789475",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "vpn-binding",
+            "relationship-label": "org.onap.relationships.inventory.PartOf",
+            "related-link": "/aai/v13/network/vpn-bindings/vpn-binding/11.11.11.11-vpn1",
+            "relationship-data": [
+              {
+                "relationship-key": "vpn-binding.vpn-id",
+                "relationship-value": "11.11.11.11-vpn1"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "vpn-binding.vpn-name",
+                "property-value": "11.11.11.11-vpn1"
+              },
+              {
+                "property-key": "vpn-binding.vpn-type",
+                "property-value": "ethernet"
+              }
+            ]
+          },
+          {
+            "related-to": "service-instance",
+            "relationship-label": "org.onap.relationships.inventory.PartOf",
+            "related-link": "/aai/v13/business/customers/customer/demo/service-subscriptions/service-subscription/ccvpn/service-instances/service-instance/32cd906f-ee7a-4ecf-b1c3-2fce4d59f8c0",
+            "relationship-data": [
+              {
+                "relationship-key": "customer.global-customer-id",
+                "relationship-value": "demo"
+              },
+              {
+                "relationship-key": "service-subscription.service-type",
+                "relationship-value": "ccvpn"
+              },
+              {
+                "relationship-key": "service-instance.service-instance-id",
+                "relationship-value": "32cd906f-ee7a-4ecf-b1c3-2fce4d59f8c0"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "service-instance.service-instance-name",
+                "property-value": "SOTNVPNInfra"
+              }
+            ]
+          },
+          {
+            "related-to": "vpn-binding",
+            "relationship-label": "org.onap.relationships.inventory.PartOf",
+            "related-link": "/aai/v13/network/vpn-bindings/vpn-binding/12.12.12.12-vpn1",
+            "relationship-data": [
+              {
+                "relationship-key": "vpn-binding.vpn-id",
+                "relationship-value": "12.12.12.12-vpn1"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "vpn-binding.vpn-name",
+                "property-value": "12.12.12.12-vpn1"
+              },
+              {
+                "property-key": "vpn-binding.vpn-type",
+                "property-value": "ethernet"
+              }
+            ]
+          }
+        ]
+      }
+    }
+  ]
+}
\ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getExtAaiId.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getExtAaiId.json
new file mode 100644 (file)
index 0000000..418e772
--- /dev/null
@@ -0,0 +1,3 @@
+{
+  "resource-version":"cmcc_1.0"
+}
\ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getHostUrl.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getHostUrl.json
new file mode 100644 (file)
index 0000000..e84b42d
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "esr-system-info-id": "gongjie666",
+  "service-url": "http://10.10.10.10:8080/",
+  "user-name": "demo",
+  "password": "demo123456!",
+  "system-type": "ONAP",
+  "resource-version": "1536221798873"
+}
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByVpnId.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByVpnId.json
new file mode 100644 (file)
index 0000000..04ff2a6
--- /dev/null
@@ -0,0 +1,82 @@
+{
+  "vpn-binding": [
+    {
+      "vpn-id": "pnf1000-vpn1",
+      "vpn-name": "pnf1000-vpn1",
+      "vpn-type": "ethernet",
+      "access-provider-id": "5555",
+      "access-client-id": "6666",
+      "access-topology-id": "100",
+      "src-access-node-id": "10.10.10.10",
+      "src-access-ltp-id": "14",
+      "dst-access-node-id": "10.10.10.10",
+      "dst-access-ltp-id": "2",
+      "operational-status": "Created",
+      "model-customization-id": "",
+      "model-invariant-id": "",
+      "model-version-id": "",
+      "resource-version": "1536135677693",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "connectivity",
+            "relationship-label": "org.onap.relationships.inventory.PartOf",
+            "related-link": "/aai/v13/network/connectivities/connectivity/4efe6dff-acfc-4d13-a3fd-1177d3c08e84",
+            "relationship-data": [
+              {
+                "relationship-key": "connectivity.connectivity-id",
+                "relationship-value": "4efe6dff-acfc-4d13-a3fd-1177d3c08e84"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "connectivity.etht-svc-name",
+                "property-value": "SOTNVPNInfra"
+              }
+            ]
+          },
+          {
+            "related-to": "p-interface",
+            "relationship-label": "org.onap.relationships.inventory.BindsTo",
+            "related-link": "/aai/v13/network/pnfs/pnf/pnf1000/p-interfaces/p-interface/nodeId-79.79.79.79-ltpId-2",
+            "relationship-data": [
+              {
+                "relationship-key": "pnf.pnf-name",
+                "relationship-value": "pnf1000"
+              },
+              {
+                "relationship-key": "p-interface.interface-name",
+                "relationship-value": "nodeId-79.79.79.79-ltpId-2"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "p-interface.prov-status"
+              }
+            ]
+          },
+          {
+            "related-to": "p-interface",
+            "relationship-label": "org.onap.relationships.inventory.BindsTo",
+            "related-link": "/aai/v13/network/pnfs/pnf/pnf1000/p-interfaces/p-interface/nodeId-79.79.79.79-ltpId-1",
+            "relationship-data": [
+              {
+                "relationship-key": "pnf.pnf-name",
+                "relationship-value": "pnf1000"
+              },
+              {
+                "relationship-key": "p-interface.interface-name",
+                "relationship-value": "nodeId-79.79.79.79-ltpId-1"
+              }
+            ],
+            "related-to-property": [
+              {
+                "property-key": "p-interface.prov-status"
+              }
+            ]
+          }
+        ]
+      }
+    }
+  ]
+}
\ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getPnfInfo.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getPnfInfo.json
new file mode 100644 (file)
index 0000000..c337bd9
--- /dev/null
@@ -0,0 +1,29 @@
+{
+  "pnf-name": "pnf1000",
+  "pnf-id": "79.79.79.79",
+  "in-maint": true,
+  "resource-version": "1536028638695",
+  "admin-status": "up",
+  "operational-status": "up",
+  "relationship-list": {
+    "relationship": [
+      {
+        "related-to": "network-resource",
+        "relationship-label": "tosca.relationships.network.LinksTo",
+        "related-link": "/aai/v13/network/network-resources/network-resource/1000",
+        "relationship-data": [
+          {
+            "relationship-key": "network-resource.network-id",
+            "relationship-value": "1000"
+          }
+        ],
+        "related-to-property": [
+          {
+            "property-key": "network-resource.network-id",
+            "property-value": "1000"
+          }
+        ]
+      }
+    ]
+  }
+}
\ No newline at end of file