[TSDR-61] TSC-96 IetfInetUtil conversion from byte[] and InetAddress returns a different implementation of Ipv4Address Created: 30/May/18  Updated: 06/Jun/18  Resolved: 06/Jun/18

Status: Resolved
Project: tsdr
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Scott Melton Assignee: Scott Melton
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This effects SysLogCollector, SysLogGenerator and NetFlowCollector.
 

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.
 
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/

 

 



 Comments   
Comment by Scott Melton [ 06/Jun/18 ]

Yangtools patch was reverted, no need for this now.

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

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