-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>
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;