Change GetConfigReq/Res and SetConfig factories to version assignable
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / TypeToClassMapInitializer.java
index d65fd3376e7a2bc8d94c6154ba74bbaf8dc0a802..d8ca8c8a27f0d1b03e7cab8986e3d133e19e226c 100644 (file)
@@ -99,12 +99,14 @@ public final class TypeToClassMapInitializer {
         helper.registerTypeToClass((short) 0, HelloMessage.class);
         helper.registerTypeToClass((short) 2, EchoRequestMessage.class);
         helper.registerTypeToClass((short) 3, EchoOutput.class);
+        helper.registerTypeToClass((short) 8, GetConfigOutput.class);
 
         // init OF v1.5 mapping
         helper = new TypeToClassInitHelper(EncodeConstants.OF15_VERSION_ID, messageClassMap);
         helper.registerTypeToClass((short) 0, HelloMessage.class);
         helper.registerTypeToClass((short) 2, EchoRequestMessage.class);
         helper.registerTypeToClass((short) 3, EchoOutput.class);
+        helper.registerTypeToClass((short) 8, GetConfigOutput.class);
     }
 
     /**
@@ -143,5 +145,15 @@ public final class TypeToClassMapInitializer {
         helper.registerTypeToClass((short) 26, GetAsyncInput.class);
         helper.registerTypeToClass((short) 28, SetAsyncInput.class);
         helper.registerTypeToClass((short) 29, MeterModInput.class);
+
+        // init OF v1.4 mapping
+        helper = new TypeToClassInitHelper(EncodeConstants.OF14_VERSION_ID, messageClassMap);
+        helper.registerTypeToClass((short) 7, GetConfigInput.class);
+        helper.registerTypeToClass((short) 9, SetConfigInput.class);
+
+        // init OF v1.5 mapping
+        helper = new TypeToClassInitHelper(EncodeConstants.OF15_VERSION_ID, messageClassMap);
+        helper.registerTypeToClass((short) 7, GetConfigInput.class);
+        helper.registerTypeToClass((short) 9, SetConfigInput.class);
     }
 }