The following draft is hopefully a simple proposal. It models operational state for protocols with bit vectors using the 'bits' type in YANG when a given bit position hasn't been assigned yet.
This proposal comes out of a brief inquiry to the YANG doctors while trying to solve the problem mentioned in the draft for the BGP YANG model. Your feedback is appreciated and, if the proposal is acceptable, I'd suggest adoption by the Working Group. Please note that the draft is on github. I'm happy to take feedback as issues or pull requests there: https://github.com/jhaas-pfrc/draft-haas-netmod-unknown-bits -- Jeff ----- Forwarded message from [email protected] ----- Date: Thu, 26 Jan 2023 12:43:24 -0800 From: [email protected] To: Jeffrey Haas <[email protected]> Subject: New Version Notification for draft-haas-netmod-unknown-bits-00.txt A new version of I-D, draft-haas-netmod-unknown-bits-00.txt has been successfully submitted by Jeffrey Haas and posted to the IETF repository. Name: draft-haas-netmod-unknown-bits Revision: 00 Title: Representing Unknown YANG bits in Operational State Document date: 2023-01-26 Group: Individual Submission Pages: 18 URL: https://www.ietf.org/archive/id/draft-haas-netmod-unknown-bits-00.txt Status: https://datatracker.ietf.org/doc/draft-haas-netmod-unknown-bits/ Html: https://www.ietf.org/archive/id/draft-haas-netmod-unknown-bits-00.html Htmlized: https://datatracker.ietf.org/doc/html/draft-haas-netmod-unknown-bits Abstract: Protocols frequently have fields where the contents are a series of bits that have specific meaning. When modeling operational state for such protocols in YANG, the 'bits' YANG built-in type is a natural method for modeling such fields. The YANG 'bits' built-in type is best suited when the meaning of a bit assignment is clear. When bits that are currently RESERVED or otherwise unassigned by the protocol are received, being able to display them is necessary in YANG operational models. This cannot be done using the YANG 'bits' built-in type without assigning them a name. However, YANG versioning rules do not permit renaming of named bits. This draft proposes a methodology to represent unknown bits in YANG operational models and creates a YANG typedef to assist in uniformly naming such unknown bits. The IETF Secretariat ----- End forwarded message ----- _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
