flowCookieMask conversion fix (BUG 840) 57/6357/1
authorMichal Rehak <mirehak@cisco.com>
Thu, 24 Apr 2014 12:13:23 +0000 (14:13 +0200)
committerMichal Rehak <mirehak@cisco.com>
Thu, 24 Apr 2014 12:19:51 +0000 (14:19 +0200)
Change-Id: I8c601bc1cd5865f2112dbe87176d2bef5f80b608
Signed-off-by: Michal Rehak <mirehak@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/FlowConvertor.java

index ee7d66eab1f6710fb45d0159c7f38b3825975ec1..c70908023285ab024ff7ae1261c80a3e591b4e00 100644 (file)
@@ -99,7 +99,7 @@ public class FlowConvertor {
         }
 
         if (flow.getCookieMask() != null) {
-            flowMod.setCookieMask(new BigInteger(flow.getCookieMask().toString()));
+            flowMod.setCookieMask(flow.getCookieMask().getValue());
         } else {
             flowMod.setCookieMask(DEFAULT_COOKIE_MASK);
         }