Hi all,

When a server operates in 'trim' mode (rfc6243), setting a leaf to its default 
value removes it from the config (i.e. it is indistinguishable from the case 
where that leaf was never configured or the case where that leaf was 
deleted/removed).

(A)
Does setting a leaf in one case of a choice to its default value (in a 'trim' 
mode server) cause leafs in other cases to be implicitly deleted ?  I assume 
not.

For example:

choice foo {
  case aa {
    leaf some-bool { type Boolean; default "false"; }
  {
  case bb {
    leaf some-num { type int32; }
  }
}

If some-num is currently set to 50, and then an edit-config sets some-bool to 
"false", does that clear the some-num leaf ?
(i.e. does it select case aa ?)

RFC 7950 says: "the creation of a node from one case implicitly deletes all 
nodes from all other cases".
RFC 6243 section 2.2.3 describes that a leaf set to default (in a trim server) 
doesn't exist.

(B)
Now how about if the server operates in 'explicit' mode ?  Does setting 
some-bool to "false" clear some-num ?  I assume it does (but it just seems a 
little funny that the behavior on this changes between trim and explicit 
servers).


Regards,
Jason





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

Reply via email to