You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pyang 2.6.0/2.6.1 onwards we see that the yang files report warning for any when conditions set on a config false leaf as shown below. Why this is a warning for pyang, If we remove config false from the when condition leaf then the warning goes away. Also is there any way to mask this error.
NOTE: The feature supported may be config false based on different conditions and may not be configurable
pyang abc-example.yang
abc-example.yang:44: warning: node "abc-example::feature" is config false and is not part of the accessible tree
abc-example.yang:44: warning: node "abc-example::feature" is config false and is not part of the accessible tree
module: abc-example
+--rw mycontainer
+--rw mylist* [key1]
+--rw key1 uint32
+--ro feature? boolean
+--rw feature-dependent-value? uint8
Hi, the feature-dependent-value leaf is a data node in the configuration datastores while the feature leaf is state data which is not part of the configuration datastores. The XPATH expression in the when statement is evaluated on the configuration datastores as it is defined on a configuration data node so the config false data node is not accessible for it.
Pyang 2.6.0/2.6.1 onwards we see that the yang files report warning for any when conditions set on a config false leaf as shown below. Why this is a warning for pyang, If we remove config false from the when condition leaf then the warning goes away. Also is there any way to mask this error.
The text was updated successfully, but these errors were encountered: