commit | 28e1b3e092eacbaf609cc084f8e1684cf06758b8 | [log] [tgz] |
---|---|---|
author | Jayasree Ghosh <jghosh@partner.ciena.com> | Thu Jun 16 05:38:50 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Sep 30 19:06:50 2016 +0000 |
tree | a65821ac12c82e86a5512819ef95f2440aa207e8 | |
parent | ffe73e461f16384188ea384351ed76d0208bb6f7 [diff] |
Fix for ONOS-4675: FLOW ID is not matching with the one added in the ONOS Change-Id: I1730ec5ae0692651cb774c2b546c31773115676c
diff --git a/web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java b/web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java index a11ce09..e026662 100644 --- a/web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java +++ b/web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java
@@ -126,7 +126,7 @@ rules.forEach(flowRule -> { ObjectNode flowNode = mapper().createObjectNode(); flowNode.put(DEVICE_ID, flowRule.deviceId().toString()) - .put(FLOW_ID, flowRule.id().value()); + .put(FLOW_ID, Long.toString(flowRule.id().value())); flowsNode.add(flowNode); }); } catch (IOException ex) {