Closed tdesh10 closed 2 years ago
Related to #1005
Not a bug! The function ydk.path.DataNode.find() was designed to get a child node of a parent node. For this operation the path must be relative to the path of the parent node. The failure described in the script was resolved in YDK-0.8.5 while addressing issue #1005.
Expected Behavior
ydk.path.DataNode.find(path)
should accept absolute paths with a leading/
as defined in RFC 7950(section 6.5)Current Behavior
ydk.path.DataNode.find(path)
rejects absolute paths with a leading/
, with exception:YModelError: Unexpected character(s) '/' ("/Cisco-IOS-XR-cdp-cfg:cdp/timer"). Path:
Steps to Reproduce
Execute the script below in ydk-py docker container.
Your Script
Logs
System Information