diff options
author | 2018-09-11 19:04:19 +0800 | |
---|---|---|
committer | 2018-09-11 19:04:33 +0800 | |
commit | b924512057d7c94ee706f3cdd63f626136ed75a1 (patch) | |
tree | 682006b4b748f302441c412a1807cdf9a54a4aa7 | |
parent | 022b23ba1e560a25aeaf3e7ce2a5ec9142170858 (diff) |
getpInterfaceBypnfName do not get data
Change-Id: Id9db334e1977139a7e563578a827711d0d8909bf
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 | 9 | ||||
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java | 2 |
2 files changed, 10 insertions, 1 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 b201f614..2af18af7 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 @@ -160,6 +160,9 @@ public class SotnController { NetWorkResource netResource = new NetWorkResource(); List<Pnf> pnfs = new ArrayList<Pnf>(); String networkId=netNode.get(i).get("network-id").toString(); + if(networkId.indexOf("\"")!=-1){ + networkId = networkId.substring(1, networkId.length()-1); + } netResource.setNetworkId(networkId); if(UuiCommonUtil.isNotNullOrEmpty(netNode.get(i).get("relationship-list"))){ String relationJson = netNode.get(i).get("relationship-list").toString(); @@ -170,7 +173,13 @@ 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); } diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java index 734cc614..0612fc4a 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java @@ -99,7 +99,7 @@ public interface AAIService { "Authorization: Basic QUFJOkFBSQ==", "Accept: application/json" }) - @GET("api/aai-network/v13/network-resources") + @GET("/api/aai-network/v13/network-resources") Call<ResponseBody> listNetWorkResources(); @Headers({ |