Open kwatsen opened 7 months ago
Do not support this change. YANG uses the defined keys. An implementation is not required to maintain an internal key.
An explicit rename operation could be defined in YANG 2.0 so a list could change key values in a protocol-consistent manner.
Section https://datatracker.ietf.org/doc/html/rfc8040#section-4.5 says:
And Section https://datatracker.ietf.org/doc/html/rfc8040#section-4.6.1 says:
IDK where this requirement comes from, but my server handles changing key values just fine. My server can support this because it uses a different primary key internally and, in effect, the "key" field(s) are just unique. What this means is that, changing a key field's value is immediately reflected in leafrefs; there is no need to do a global search/replace.
I suggest allowing the server to advertise whether it supports changing key values.