Int32 but enter it in hex

We have a number of values in our internal mib that are int32 and would like to represent them the confd cli as typed int32 but accepting either a decimal or hexidecimal value and storing it into an int32. I have seen the examples with tailf:display-hint, but they seem to be for byte strings or hex strings. Is there a simple mechanism for doing this. A good example of attributes like this are:
Also tailf:display-hint if it works with int32 would likely only allow a single input representation (dec or hex, not both). Also does tailf:display-hint work with int32 numbers?

leaf ethertype {
type:int32
}

Hi Les,

It sounds like you could use a union that has both string with a pattern and integer types and then you do the conversion before storing in your internal int32. Would that work for you?

Scott