commit | 70dffe4447747ed3c05c5bc4e39cc53254eab071 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Tue Mar 08 22:23:02 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Mar 09 17:40:28 2016 +0000 |
tree | 46c6ef810d075ccaa1346f4a3cc3f79ef44075d9 | |
parent | 913e9e1fdc4fe21ccb1d6c1f0e275e9bbf79e60f [diff] [blame] |
Support to encode and decode setqueue id in InstructionCodec Change-Id: I911e14b750d5264755687a9eff322502ba9ed118
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 fc6935d..e025475 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
@@ -256,6 +256,13 @@ result.put(InstructionCodec.METER_ID, meterInstruction.meterId().toString()); break; + case QUEUE: + final Instructions.SetQueueInstruction setQueueInstruction = + (Instructions.SetQueueInstruction) instruction; + result.put(InstructionCodec.QUEUE_ID, setQueueInstruction.queueId()); + result.put(InstructionCodec.PORT, setQueueInstruction.port().toString()); + break; + case L0MODIFICATION: encodeL0(result); break;