Re: [netmod] Unknown bits - backwards compatibility

2023-04-12 Thread Jason Sterne (Nokia)
It just occurred to me that to avoid the NBC change we could also consider just calling this new typedef "raw-bits" and always outputting all the bits in the second leaf (whether they are known or not)? I suspect this was already considered though... Jason From: netmod On Behalf Of Jason

[netmod] Unknown bits - backwards compatibility

2023-04-12 Thread Jason Sterne (Nokia)
Hi Jeff, One topic that came up during the IETF 116 NETMOD meeting was backwards compatibility. >From what I understand, a leaf (e.g. unknown-flags) that uses the unknown-bits >typedef would never change its definition in YANG. It would always be defined >as unknown-bits with all 64 bit

Re: [netmod] Request for WG adoption, draft-haas-netmod-unknown-bits-01.txt

2023-04-12 Thread Andy Bierman
On Wed, Apr 12, 2023 at 10:04 AM Jeffrey Haas wrote: > Tom, > > > > On Apr 12, 2023, at 12:44 PM, tom petch wrote: > >> The reason to disconsider it is that within the same leaf, the value > "changes meaning" once you end up with the new identity for the value when > it's assigned and then end

Re: [netmod] Request for WG adoption, draft-haas-netmod-unknown-bits-01.txt

2023-04-12 Thread Jeffrey Haas
Tom, > On Apr 12, 2023, at 12:44 PM, tom petch wrote: >> The reason to disconsider it is that within the same leaf, the value >> "changes meaning" once you end up with the new identity for the value when >> it's assigned and then end up with an orphaned identity. Implementations >> looking

Re: [netmod] Request for WG adoption, draft-haas-netmod-unknown-bits-01.txt

2023-04-12 Thread tom petch
From: netmod on behalf of Jeffrey Haas Sent: 12 April 2023 15:39 Acee, > On Apr 12, 2023, at 10:33 AM, Acee Lindem wrote: > So the way you offer backward compatibility is that each bit-encoded field > would have two leaves, one for the known bits and one for the unknown. Then > when a bit

Re: [netmod] Request for WG adoption, draft-haas-netmod-unknown-bits-01.txt

2023-04-12 Thread Jeffrey Haas
Acee, > On Apr 12, 2023, at 10:33 AM, Acee Lindem wrote: > So the way you offer backward compatibility is that each bit-encoded field > would have two leaves, one for the known bits and one for the unknown. Then > when a bit is defined and supported by a YANG model implementation, the >

Re: [netmod] Request for WG adoption, draft-haas-netmod-unknown-bits-01.txt

2023-04-12 Thread Acee Lindem
Hi Jeff, So the way you offer backward compatibility is that each bit-encoded field would have two leaves, one for the known bits and one for the unknown. Then when a bit is defined and supported by a YANG model implementation, the known flags could be augmented and the corresponding unknown