[CONTROLLER-1003] org.opendaylight.controller.sal.core.MacAddress is case sensitive Created: 06/Nov/14  Updated: 19/Oct/17  Resolved: 19/May/16

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Jim West Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2334

 Description   

During a test/debug cycle, we ran into a problem with the MacAddress object. It is best explained by this test case

MacAddress macAddr1 = new MacAddress("FF:FF:FF:FF:FF:FF");
MacAddress macAddr2 = new MacAddress("ff:ff:ff:ff:ff:ff");

if (macAddr1.equals(macAddr2)) {
System.out.println("SAME");
}
else {
System.out.println("DIFFERENT");
}

Logically the macAddr1 and macAddr2 are the same, but the ODL code does not treat them as the same.

Reading the code, the MacAddress object always treats the data as a string, not as an array of bytes.



 Comments   
Comment by Bhavesh Kumar [ 27/Nov/14 ]

https://git.opendaylight.org/gerrit/13168

Comment by Jim West [ 02/Feb/15 ]

changes look good: +1

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Comment by Robert Varga [ 19/May/16 ]

AD-SAL has been removed, this issue will not be fixed.

Generated at Wed Feb 07 19:54:26 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.