On Jun 20, 2019 5:39 AM, Kent Watsen <[email protected]> wrote:


On Jun 19, 2019, at 2:37 AM, Ramon Casellas <[email protected]> wrote:


TL&DR: is it possible to create a list entry without specifying its key, assuming that the server can allocate such key while processing the request ?

The expected answer is "no", because, as RFC 7950 Section 7.8.2 says: '''the "key" statement ... MUST be present if the list represents configuration''', and hence most tooling will expect the keys to be present in POST operations.

Hi Kent

I see your point, i.e., concerning tools, but IMHO that RFC sentence refers to the Yang data model itself, and the list does contain a key statement. 


However, RFC 8040 Section 4.4.1 says "the message-body MUST contain exactly one instance of the expected data resource.


On the other hand, this seems  to clearly imply that lacking the key / uuid, the post message  does not contain a fully constructed instance of the data resource.

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

Reply via email to