[TSC-96] IetfInetUtil conversion from byte[] and InetAddress returns a different implementation of Ipv4Address Created: 21/Apr/18  Updated: 30/Apr/19  Resolved: 02/May/18

Status: Resolved
Project: tsc
Component/s: None
Affects Version/s: None
Fix Version/s: Fluorine

Type: Weather Item Priority: Medium
Reporter: Robert Varga Assignee: Abhijit Kumbhare
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to TSC-92 Breaking change not reverted when it ... Closed
ODL Project: mdsal
ODL Release:
ODL Impacted Projects: all-projects
ODL Expected Date:

 Description   

Since InetAddress and byte[] do not semantically hold a zone, the utilities return the more-strictly validated subclass of Ip{v4,v6,}Address, Ip{v4,v6,}AddressNoZone.

Projects that require an Ip{v4,v6}Address instance rather than any subclass of it, need to re-wrap the result through one of the copy constructors.



 Comments   
Comment by Robert Varga [ 21/Apr/18 ]

MD-SAL patch: https://git.opendaylight.org/gerrit/#/c/70769/

Example downstream fixes:

https://git.opendaylight.org/gerrit/#/c/71071/

https://git.opendaylight.org/gerrit/#/c/71105/

 

Generated at Wed Feb 07 20:45:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.