Added a signum to the SetMetaDataMask BigInt constructor 59/10159/1
authorBrent Salisbury <brent.salisbury@gmail.com>
Fri, 22 Aug 2014 08:16:59 +0000 (04:16 -0400)
committerBrent Salisbury <brent.salisbury@gmail.com>
Fri, 22 Aug 2014 08:16:59 +0000 (04:16 -0400)
-OF TestCommandProvider doesnt appear functional atm, but
I did test the Java API calls from elsewhere. The test
function should now work. Below is the instantiated flowmod:
(Match) metadata=0x100/0xffffff0000000101 actions=drop

Signed-off-by: Brent Salisbury <brent.salisbury@gmail.com>
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java

index 1598c968d5655bb340e4e80dd16551c22d986dc2..27933270717a13e271d810ad607e707cc5c791bc 100644 (file)
@@ -3223,7 +3223,7 @@ public class OpenflowpluginTestCommandProvider implements CommandProvider {
         byte[] metamask = new byte[]{(byte) -1, (byte) -1, (byte) -1, 0, 0, 0, (byte) 1, (byte) 1};
         MetadataBuilder metadata = new MetadataBuilder(); // metadata match
         metadata.setMetadata(BigInteger.valueOf(500L));
-        metadata.setMetadataMask(new BigInteger(metamask));
+        metadata.setMetadataMask(new BigInteger(1, metamask));
         match.setMetadata(metadata.build());
 
         return match;