commit | a41366d068676d7fe4db8acb07a772956c121332 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Sun Jun 01 21:57:43 2014 -0700 |
committer | Gerrit Code Review <gerrit2@gerrit.onos.onlab.us> | Fri Jun 06 18:23:18 2014 -0700 |
tree | 84227830d8d893ef5df6cc2d5f88879c1c19c704 | |
parent | a9b7858d7bf973d686546956424e14d24cd35afa [diff] |
Remove devices array from the Port JSON representation. The array was never populated with device data, it was only added to maintain compatability with the old REST API. Change-Id: Id89e9732c1ae229b7accc13b97283b8e000cd3ae
diff --git a/src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java b/src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java index 3732151..fb88f25 100644 --- a/src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java +++ b/src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java
@@ -25,8 +25,6 @@ jsonGenerator.writeStringField("dpid", HexString.toHexString(port.getDpid())); jsonGenerator.writeNumberField("number", port.getNumber()); jsonGenerator.writeStringField("desc", port.getDescription()); - jsonGenerator.writeArrayFieldStart("devices"); - jsonGenerator.writeEndArray(); jsonGenerator.writeEndObject(); }