diff options
author | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2020-10-23 11:58:02 +0200 |
---|---|---|
committer | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2020-10-23 11:58:02 +0200 |
commit | 562b91c16ea3670bf0c4f7a2bf4d578207eecf07 (patch) | |
tree | 86f28e29786d3ce8e4877b3b0653901effce9c82 /sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts | |
parent | e8b2539d03bb17385efd625bc9bf5e804c2fff26 (diff) |
Update NetworkMap
Change how pnfs/nodes are discovered; new lookup uses node-name
Issue-ID: CCSDK-2940
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I2561d5a2478664fc975b25f08a7ef57122756e0a
Diffstat (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts')
-rw-r--r-- | sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts b/sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts index 5288f61d9..afa8ee41e 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts +++ b/sdnr/wt/odlux/apps/networkMapApp/src/actions/detailsAction.ts @@ -102,12 +102,10 @@ running=true; dispatcher(new IsBusyCheckingDeviceListAction(true)); const promises = list.map((device)=>{ - if(device.simulatorId){ - return requestRest<any>("/rests/operational/network-topology:network-topology/topology/topology-netconf/node/"+device.simulatorId, { method: "GET" }) - + if(device.name){ + return requestRest<any>("/rests/data/network-topology:network-topology/topology=topology-netconf/node="+device.name, { method: "GET" }) }else{ - return requestRest<any>("/rests/operational/network-topology:network-topology/topology/topology-netconf/node/"+device.name, { method: "GET" }) - + return device; } }) @@ -117,9 +115,8 @@ running=true; result.forEach((res: any, index)=>{ - if(res !==null && res.node!==null){ - - list[index].status = res.node[0]["netconf-node-topology:connection-status"]; + if(res !==null && res["network-topology:node"]){ + list[index].status = res["network-topology:node"][0]["netconf-node-topology:connection-status"]; }else{ list[index].status = "Not connected"; } |