commit | 2fb3c1f66aaaaaaf23bb1d7531f87002463673da | [log] [tgz] |
---|---|---|
author | Marc De Leenheer <marc@opennetworking.org> | Mon Oct 30 20:55:20 2017 -0700 |
committer | Marc De Leenheer <marc@opennetworking.org> | Mon Oct 30 20:55:46 2017 -0700 |
tree | a30d4385ef1d593ef2fbce5cf7054ea3531e6192 | |
parent | d43301aec45b7624ec0391f54ddc2fb60cba7479 [diff] |
Fix json deserialization Change-Id: I2aa308ecfa97fabd14655a34811e052ba2317802
diff --git a/local/ce-fabric/src/main/java/org/opencord/ce/local/fabric/CarrierEthernetFabricManager.java b/local/ce-fabric/src/main/java/org/opencord/ce/local/fabric/CarrierEthernetFabricManager.java index 66fb6db..e048f7b 100644 --- a/local/ce-fabric/src/main/java/org/opencord/ce/local/fabric/CarrierEthernetFabricManager.java +++ b/local/ce-fabric/src/main/java/org/opencord/ce/local/fabric/CarrierEthernetFabricManager.java
@@ -246,7 +246,7 @@ // Build URL and perform post WebTarget target = client.target("http://" + publicIp + ":" + port + "/onos/v1/network/configuration/"); - Response response = target.request().post(Entity.entity(json, MediaType.APPLICATION_JSON_TYPE)); + Response response = target.request().post(Entity.entity(json.toString(), MediaType.APPLICATION_JSON_TYPE)); response.close(); }