TableFeatures deserialization fix
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / MatchDeserializer.java
index 62cb6ccd49007a47e1f38a79bb4158c5a2a81d59..62916745bf113743a0f99dfc986d0e8c718b4ab3 100644 (file)
@@ -486,6 +486,15 @@ public abstract class MatchDeserializer {
         return matchEntriesList;
     }
 
+    /** Decodes oxm ids
+     * @param in input ByteBuf
+     * @param matchLength match entries length
+     * @return list of match ids
+     */
+    public static List<MatchEntries> createMatchIds(ByteBuf in, int matchLength) {
+        return MatchIdsReader.createOxmIds(in, matchLength);
+    }
+
     private static void addMaskAugmentation(MatchEntriesBuilder builder, ByteBuf in, int matchEntryLength) {
         MaskMatchEntryBuilder maskBuilder = new MaskMatchEntryBuilder();
         byte[] mask = new byte[matchEntryLength];