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