commit | 7b808c5e15d640218df50cad5f95424b67eecb93 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Fri Jun 26 14:22:24 2015 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Mon Jun 29 15:24:35 2015 -0700 |
tree | 4cd5eab7b45fc1e2767825c788ca3043a7d368d4 | |
parent | f3ed655a8e2fb978818b0262bddb5ad53c07a443 [diff] [blame] |
small fixes to ethtype pattern Change-Id: Ic58c426821952f66aa21bc828d36fd4f83d8da0d
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodec.java b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodec.java index 7fb56fd..20de446 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodec.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodec.java
@@ -119,7 +119,8 @@ final L2ModificationInstruction.PushHeaderInstructions pushHeaderInstructions = (L2ModificationInstruction.PushHeaderInstructions) instruction; - result.put(InstructionCodec.ETHERNET_TYPE, pushHeaderInstructions.ethernetType()); + result.put(InstructionCodec.ETHERNET_TYPE, + pushHeaderInstructions.ethernetType().toShort()); break; default: