summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/mock/json
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-09-12 09:45:54 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-12 09:45:54 +0000
commite22274d42e8fa9eb96fb38aee46b847812b2e400 (patch)
treec306eb9bdf23d364a80342590284a246bc74c612 /usecaseui-portal/src/app/mock/json
parentffd6d1e39c36a2133d329b975d5fe588bba36d35 (diff)
parenteb2d8b5118d13398eb57ef10d68b6ec595bc1989 (diff)
Merge "feat:optimize topo api & mock json for network service page"
Diffstat (limited to 'usecaseui-portal/src/app/mock/json')
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-sotn_getLogicalLinks.json117
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-sotn_getNetWorkResources.json198
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByPnfName.json17
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-sotn_getSpecificLogicalLink.json52
4 files changed, 384 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getLogicalLinks.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getLogicalLinks.json
new file mode 100644
index 00000000..1b8ecff1
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-sotn_getLogicalLinks.json
@@ -0,0 +1,117 @@
+{
+ "logical-link": [
+ {
+ "link-name": "cross-link-1",
+ "in-maint": false,
+ "link-type": "cross-link",
+ "resource-version": "1536029865021",
+ "operational-status": "up",
+ "relationship-list": {
+ "relationship": [
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "related-link": "/aai/v13/network/pnfs/pnf/pnf2000/p-interfaces/p-interface/nodeId-78.78.78.78-ltpId-1",
+ "relationship-data": [
+ {
+ "relationship-key": "pnf.pnf-name",
+ "relationship-value": "pnf2000"
+ },
+ {
+ "relationship-key": "p-interface.interface-name",
+ "relationship-value": "nodeId-78.78.78.78-ltpId-1"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "p-interface.prov-status"
+ }
+ ]
+ },
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "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"
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "link-name": "cross-link-2",
+ "in-maint": false,
+ "link-type": "cross-link",
+ "resource-version": "1536029865021",
+ "operational-status": "up",
+ "relationship-list": {
+ "relationship": [
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "related-link": "/aai/v13/network/pnfs/pnf/pnf3000/p-interfaces/p-interface/nodeId-80.80.80.80-ltpId-2",
+ "relationship-data": [
+ {
+ "relationship-key": "pnf.pnf-name",
+ "relationship-value": "pnf3000"
+ },
+ {
+ "relationship-key": "p-interface.interface-name",
+ "relationship-value": "nodeId-80.80.80.80-ltpId-2"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "p-interface.prov-status"
+ }
+ ]
+ },
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "related-link": "/aai/v13/network/pnfs/pnf/pnf-cloud/p-interfaces/p-interface/cloud-tp",
+ "relationship-data": [
+ {
+ "relationship-key": "pnf.pnf-name",
+ "relationship-value": "pnf-cloud"
+ },
+ {
+ "relationship-key": "p-interface.interface-name",
+ "relationship-value": "cloud-tp"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "p-interface.prov-status"
+ }
+ ]
+ },
+ {
+ "related-to": "ext-aai-network",
+ "relationship-label": "org.onap.relationships.inventory.BelongsTo",
+ "related-link": "/aai/v13/network/ext-aai-networks/ext-aai-network/gongjie666",
+ "relationship-data": [
+ {
+ "relationship-key": "ext-aai-network.aai-id",
+ "relationship-value": "gongjie666"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getNetWorkResources.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getNetWorkResources.json
new file mode 100644
index 00000000..faacef83
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-sotn_getNetWorkResources.json
@@ -0,0 +1,198 @@
+[
+ {
+ "networkId": "1000",
+ "pnfs": [
+ {
+ "pnfName": "pnf1000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "2000",
+ "pnfs": [
+ {
+ "pnfName": "pnf2000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-79.79.79.79-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-79.79.79.79-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-79.79.79.79-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-79.79.79.79-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-79.79.79.79-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "3000",
+ "pnfs": [
+ {
+ "pnfName": "pnf3000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-80.80.80.80-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-80.80.80.80-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-80.80.80.80-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-80.80.80.80-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-80.80.80.80-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "4000",
+ "pnfs": [
+ {
+ "pnfName": "pnf4000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-81.81.81.81-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-81.81.81.81-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-81.81.81.81-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-81.81.81.81-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-81.81.81.81-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "5000",
+ "pnfs": [
+ {
+ "pnfName": "pnf5000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "5000",
+ "pnfs": [
+ {
+ "pnfName": "pnf5000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "5000",
+ "pnfs": [
+ {
+ "pnfName": "pnf5000"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-1"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-82.82.82.82-ltpId-2"
+ }
+ ],
+ "aaiId":""
+ },
+ {
+ "networkId": "cloud-network",
+ "pnfs": [
+ {
+ "pnfName": "pnf-cloud"
+ }
+ ],
+ "tps": [
+ {
+ "interface-name": "cloud-tp"
+ }
+ ],
+ "aaiId":"gongjie666"
+ }
+]
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByPnfName.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByPnfName.json
new file mode 100644
index 00000000..399c21b9
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-sotn_getPinterfaceByPnfName.json
@@ -0,0 +1,17 @@
+[
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-5"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-4"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-3"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-2"
+ },
+ {
+ "interface-name": "nodeId-78.78.78.78-ltpId-1"
+ }
+]
diff --git a/usecaseui-portal/src/app/mock/json/uui-sotn_getSpecificLogicalLink.json b/usecaseui-portal/src/app/mock/json/uui-sotn_getSpecificLogicalLink.json
new file mode 100644
index 00000000..e9911409
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-sotn_getSpecificLogicalLink.json
@@ -0,0 +1,52 @@
+{
+ "link-name": "nodeId-79.79.79.79-ltpId-4_nodeId-78.78.78.78-ltpId-4",
+ "in-maint": false,
+ "link-type": "some type",
+ "speed-value": "some speed",
+ "resource-version": "1536212883031",
+ "operational-status": "up",
+ "relationship-list": {
+ "relationship": [
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "related-link": "/aai/v13/network/pnfs/pnf/pnf1000/p-interfaces/p-interface/nodeId-79.79.79.79-ltpId-4",
+ "relationship-data": [
+ {
+ "relationship-key": "pnf.pnf-name",
+ "relationship-value": "pnf1000"
+ },
+ {
+ "relationship-key": "p-interface.interface-name",
+ "relationship-value": "nodeId-79.79.79.79-ltpId-4"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "p-interface.prov-status"
+ }
+ ]
+ },
+ {
+ "related-to": "p-interface",
+ "relationship-label": "tosca.relationships.network.LinksTo",
+ "related-link": "/aai/v13/network/pnfs/pnf/pnf2000/p-interfaces/p-interface/nodeId-78.78.78.78-ltpId-4",
+ "relationship-data": [
+ {
+ "relationship-key": "pnf.pnf-name",
+ "relationship-value": "pnf2000"
+ },
+ {
+ "relationship-key": "p-interface.interface-name",
+ "relationship-value": "nodeId-78.78.78.78-ltpId-4"
+ }
+ ],
+ "related-to-property": [
+ {
+ "property-key": "p-interface.prov-status"
+ }
+ ]
+ }
+ ]
+ }
+}