BUG-770: NumberFormatException for input string on switch OFPT_HELLO 89/7289/2
authorMichal Rehak <mirehak@cisco.com>
Wed, 21 May 2014 08:16:43 +0000 (10:16 +0200)
committerMichal Rehak <mirehak@cisco.com>
Wed, 21 May 2014 09:20:41 +0000 (11:20 +0200)
DatapathId is of type uint64 and only lower 6 bytes are containign MAC address.
If the input exceeds highest positive integer (2**63-1), then parsing to long
failed.
Now it is parsed into BigInteger and only lower 8 bytes are later on used as long.

- moved unit test to test folder

Change-Id: Ie9fe78cde9fb4232209382396c2278dc029d8dca
Signed-off-by: Michal Rehak <mirehak@cisco.com>

No differences found