Closed davidmat50 closed 1 year ago
i believe i fixed this, would you mind verifying this and closing if so?
Hi @dhubler , I have tested using image for the latest commit you did for https://github.com/freeconf/yang/issues/85, but still i see that config() is returned as true for the leafs under a choice case even if the choice is having config=false.
Also config=false from the top most container is not inherited to leafs under choice case.
So the problem still exists
ok, this time i fixed it for sure.
Yes. It is fixed now. Thank you
This is continuation of https://github.com/freeconf/yang/issues/75
After the above fix, we are able to add
config false;
under choice and loading of file is sucess. But the Config() method for the data node is still returning true;Also , if any of the parent/grand parent is set to config false, this config is not inherited to the nodes under the choice.
In the above exmaple file, config=false was set for
root-container
. So it was expected that the Config() will return false for all the data nodes in this file. It was as expected for all data nodes except which are under a choice.For
leaf-init1
,leaf-init2
,leaf-init3
, andleaf-init4
which are under choice are returning .Config() as true always. The config=false is not inherited from above.RFC references: In https://www.rfc-editor.org/rfc/rfc7950#section-4.2.3 When a node is tagged with "config false", its subhierarchy is flagged as state data.
and https://www.rfc-editor.org/rfc/rfc7950#section-7.21.1