We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
After a read operation, the leaf should be stored as python native type
read
The leaf is always stored as a string even if the base type is something else, like int or Identity()
int
Identity()
Run the below script
from ydk.models.ydktest import ydktest_sanity runner = ydktest_sanity.Runner() runner.ytypes.built_in_t.identity_ref_value = ydktest_sanity.ChildIdentity() crud.create(provider, runner) runner_read = crud.read(provider, ydktest_sanity.Runner()) print(type(runner_read.ytypes.built_in_t.identity_ref_value))
Enable logging and post the logs below
In [6]: type(runner_read.ytypes.built_in_t.identity_ref_value) Out[6]: str <-- should be ydktest_sanity.ChildIdentity()
ydk-gen master
The text was updated successfully, but these errors were encountered:
Still need fixing.
Sorry, something went wrong.
CiscoDevNet#733 derrive python native types on read operation
6c892c4
a66709a
a56325b
#733 derrive python native types on read operation
866c8dd
Fixed in #820
ylil93
No branches or pull requests
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
After a
read
operation, the leaf should be stored as python native typeCurrent Behavior
The leaf is always stored as a string even if the base type is something else, like
int
orIdentity()
Steps to Reproduce
Run the below script
Your Script
Logs
Enable logging and post the logs below
System Information
ydk-gen master
The text was updated successfully, but these errors were encountered: