diff options
author | 2018-09-12 11:07:38 +0800 | |
---|---|---|
committer | 2018-09-12 11:07:53 +0800 | |
commit | 1da57ea41695d5a48a8a4ce046acd8bb3964a391 (patch) | |
tree | f5b5ec131b763935fbf245632da9db8b1751bfbe | |
parent | b924512057d7c94ee706f3cdd63f626136ed75a1 (diff) |
getNetWorkResource error
Change-Id: I1e58b4952abddc4b201c8468d79d29c852771e1b
Issue-ID: USECASEUI-141
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java b/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java index 2af18af7..b8cf9d76 100644 --- a/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java +++ b/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java @@ -173,15 +173,16 @@ public class SotnController { Pnf pnf = new Pnf(); JsonNode shipDataNode = shipNode.get(j).get("relationship-data"); String shipDataValue = shipDataNode.get(0).get("relationship-value").toString(); - if(shipDataValue.indexOf("\"")!=-1){ - shipDataValue = shipDataValue.substring(1, shipDataValue.length()-1); - } String shipDataKey = shipDataNode.get(0).get("relationship-key").toString(); if(shipDataKey.indexOf("\"")!=-1){ shipDataKey = shipDataKey.substring(1, shipDataKey.length()-1); } if("ext-aai-network.aai-id".equals(shipDataKey)){ netResource.setAaiId(shipDataKey); + continue; + } + if(shipDataValue.indexOf("\"")!=-1){ + shipDataValue = shipDataValue.substring(1, shipDataValue.length()-1); } pnf.setPnfName(shipDataValue); pnfs.add(pnf); |