[MDSAL-508] Add HexString/DottedQuad/Uuid support to IetfYangUtils Created: 05/Jan/20  Updated: 05/Jan/20  Resolved: 05/Jan/20

Status: Resolved
Project: mdsal
Component/s: models
Affects Version/s: None
Fix Version/s: 6.0.0, 4.0.9, 5.0.7

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


 Description   

BGPCEP is instantiating a HexString through a rather funky construction involving hex dump, splitting and joining, where the input is a byte[]. For the inverse, it performs another pass, where it filters separators and uses javax.xml.bind.DatatypeConverter to arrive at a byte[].

Provide an appropriate utility method which will instantiate a HexString from byte[] with minimal overhead, bypassing validation. Also provide a utility method which will format a HexString into a byte[], again with minimal overhead.

The same goes for DottedQuad and Uuid (which should just bridge from java.util.UUID).


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