Hello,
I want to use a leaf type boolean:
leaf active {
type boolean;
}
What is the expected result of the exists() function a leaf of type boolean?
I get a error message "'bool' object has no attribute 'exists'."
That's not what I expect! :(
Regards
Lothar
Solved! Go to Solution.
Hi Lothar,
Reading a boolean leaf using maagic will return True or False (native Python type) if the leaf exists.
If it doesn't exist the return value will be None.
/Tomas
Hi Lothar,
Reading a boolean leaf using maagic will return True or False (native Python type) if the leaf exists.
If it doesn't exist the return value will be None.
/Tomas