commit | 11260a019260051969309e554bfb9b0d5731073b | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Thu May 19 13:07:22 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Jun 13 15:46:14 2016 +0000 |
tree | 0329623f6ed1bbb1861ae7c8a9693106bbff2659 | |
parent | 14dc5136c293e3ab5a87155db8a027061bfe2500 [diff] |
Try to use ModMplsHeaderInstruction and ModVlanHeaderInstruction Change-Id: I0b486907ef718a6dfa3e92696397fe5a7e851aed
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 3d1ed2f..d04acf5 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
@@ -142,9 +142,8 @@ result.put(InstructionCodec.MPLS_LABEL, modMplsLabelInstruction.label().toInt()); break; case MPLS_PUSH: - final L2ModificationInstruction.PushHeaderInstructions pushHeaderInstructions = - (L2ModificationInstruction.PushHeaderInstructions) l2Instruction; - + final L2ModificationInstruction.ModMplsHeaderInstruction pushHeaderInstructions = + (L2ModificationInstruction.ModMplsHeaderInstruction) l2Instruction; result.put(InstructionCodec.ETHERNET_TYPE, pushHeaderInstructions.ethernetType().toShort()); break;