All,
In the context iana-routing-types.yang, we’ve been having a discussion of the 
merits of identities vs enums. We’ve followed the lead of RFC 7224 and used 
identities which allow augmentation. However, for IANA code points, there could 
be merit in having the type represent the actual numeric value. Any thoughts on 
this?

In the next version of YANG, it would be useful for a base identity to allow it 
to have a "base-type" (mutually exclusive of "identity-ref"). For all 
identities a "base-value" would be allowed as long as it conformed to the 
constraints of the actual or inherited (via “identity-ref”) “base-type”.

Thanks,
Acee
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to