jiangrui
Committed by Gerrit Code Review

[ONOS-2721] Fix the bug return info ports to port.

Change-Id: Ia9170a99e77eaf2d149bfb42e1c0b0da8570f782
......@@ -99,7 +99,7 @@ public class VirtualPortWebResource extends AbstractWebResource {
VirtualPort virtualPort = nullIsNotFound(get(VirtualPortService.class)
.getPort(VirtualPortId.portId(id)), VPORT_NOT_FOUND);
ObjectNode result = new ObjectMapper().createObjectNode();
result.set("ports", new VirtualPortCodec().encode(virtualPort, this));
result.set("port", new VirtualPortCodec().encode(virtualPort, this));
return ok(result.toString()).build();
}
......