BUG 7502: Switch throws an error message for the action type 57/50157/2
authorepgoraj <p.govinda.rajulu@ericsson.com>
Tue, 10 Jan 2017 05:53:13 +0000 (11:23 +0530)
committergovind <p.govinda.rajulu@ericsson.com>
Tue, 10 Jan 2017 09:07:06 +0000 (09:07 +0000)
       (move:NXM_NX_REG1[0..19]->OXM_OF_MPLS_LABEL[] )
       error message: OFPAT_BAD_MATCH due to wrong OXMClassCode.
       code-review contains the fix to address correct OXMclasscode for the matchtype.

Change-Id: I113e76111b4ca84e2a7c1f0f443af7330f33328f
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
extension/openflowjava-extension-nicira/src/main/java/org/opendaylight/openflowjava/nx/codec/match/MplsLabelCodec.java

index 72f3b9f4bbc7e7b5be5ab4593860faf73d6d5095..a82e48b385fd2ea2e5f6cbcbdad5a6b2a42d52b9 100644 (file)
@@ -61,7 +61,7 @@ public class MplsLabelCodec extends AbstractMatchCodec {
 
   @Override
   public int getOxmClassCode() {
-    return OxmMatchConstants.NXM_0_CLASS;
+    return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
   }
 
   @Override