BUG 2245 Fixed Local Variable Names
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / MatchEntryDeserializerInitializer.java
index 8d904ded3b69055bbb81dea181b453d9a1fd57f7..fe15b917411739602a6f17940f9d65726a7e1a12 100644 (file)
@@ -8,6 +8,9 @@
 package org.opendaylight.openflowjava.protocol.impl.deserialization;\r
 \r
 import org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerRegistry;\r
+import org.opendaylight.openflowjava.protocol.impl.deserialization.match.NxmTcpFlagDeserializer;\r
+import org.opendaylight.openflowjava.protocol.impl.deserialization.match.NxmTunnelIpv4DstDeserializer;\r
+import org.opendaylight.openflowjava.protocol.impl.deserialization.match.NxmTunnelIpv4SrcDeserializer;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmArpOpDeserializer;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmArpShaDeserializer;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmArpSpaDeserializer;\r
@@ -48,9 +51,9 @@ import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmUdpD
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmUdpSrcDeserializer;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmVlanPcpDeserializer;\r
 import org.opendaylight.openflowjava.protocol.impl.deserialization.match.OxmVlanVidDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants;\r
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
 import org.opendaylight.openflowjava.protocol.impl.util.MatchEntryDeserializerRegistryHelper;\r
-import org.opendaylight.openflowjava.protocol.impl.util.OxmMatchConstants;\r
+import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;\r
 \r
 /**\r
  * @author michal.polkorab\r
@@ -107,5 +110,14 @@ public class MatchEntryDeserializerInitializer {
         helper.register(OxmMatchConstants.PBB_ISID, new OxmPbbIsidDeserializer());\r
         helper.register(OxmMatchConstants.TUNNEL_ID, new OxmTunnelIdDeserializer());\r
         helper.register(OxmMatchConstants.IPV6_EXTHDR, new OxmIpv6ExtHdrDeserializer());\r
+\r
+        // Register NXM1Class match entry deserializers\r
+        MatchEntryDeserializerRegistryHelper nxm1helper =\r
+                new MatchEntryDeserializerRegistryHelper(EncodeConstants.OF13_VERSION_ID,\r
+                        OxmMatchConstants.NXM_1_CLASS, registry);\r
+        nxm1helper.register(OxmMatchConstants.NXM_NX_TUN_IPV4_SRC, new NxmTunnelIpv4SrcDeserializer());\r
+        nxm1helper.register(OxmMatchConstants.NXM_NX_TUN_IPV4_DST, new NxmTunnelIpv4DstDeserializer());\r
+        nxm1helper.register(OxmMatchConstants.NXM_NX_TCP_FLAG, new NxmTcpFlagDeserializer());\r
+\r
     }\r
 }\r