ONOS-3562 Changing the flow instructions port to human readable format
Change-Id: Ia6b1a755bc400295600f4112cb3ebe676e533eb2
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java
index 2ec301d..268d110 100644
--- a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java
+++ b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java
@@ -87,8 +87,6 @@
* Encode an L1 modification instruction.
*
* @param result json node that the instruction attributes are added to
- * @param instruction The L1 instruction
- * @param context context of the request
*/
private void encodeL1(ObjectNode result) {
L1ModificationInstruction instruction =
@@ -244,7 +242,7 @@
case OUTPUT:
final Instructions.OutputInstruction outputInstruction =
(Instructions.OutputInstruction) instruction;
- result.put(InstructionCodec.PORT, outputInstruction.port().toLong());
+ result.put(InstructionCodec.PORT, outputInstruction.port().toString());
break;
case DROP: