-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
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
Incorrect bundle model reference #1091
Comments
Reproducing script:
|
ygorelik
pushed a commit
to ygorelik/ydk-gen
that referenced
this issue
Sep 1, 2023
After the bug fix we can see in the debug level log (attached) that all modules are loaded from requested bundle. Example:
|
ygorelik
pushed a commit
to ygorelik/ydk-gen
that referenced
this issue
Sep 8, 2023
ygorelik
added a commit
to ygorelik/ydk-gen
that referenced
this issue
Sep 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
I should be able to get an XML generated code from the correct bundle family
Current Behavior
Using the incorrect bundle juniper_junos_18_4R3/_yang
Steps to Reproduce
Run below script with the following yaml payload or any payload and see that name spaces in the XML payload are junos instead of junos-qfx
Your Script
Logs
Enable logging and post the logs below
YDK conversion from a JSON payload completes, however the incorrect bundle is used.
A debug session of the python code shows that JSON_PROVIDER and XML_PROVIDER reference to the correct root_schema_table before running decoded_json_yang = CODEC.decode(JSON_PROVIDER, config_json_yang) however after CODEC.decode is run the JSON_PROVIDER refers to two root_schema_table (junos-18_4R3 and junos-qfx-202R3). Eventually the decoded_json_yang variable contains elements referring to the incorrect module. Removing the Junos 18.4 modules will lead to an exception "Hit an Exception: No YDK bundle installed for node path 'junos-conf-root:configuration'"
System Information
Issue can be reproduced both on a Mac and a Linux system with YDK 0.8.6.5 installed and python 3.8 (Mac) or 3.6 (Linux Centos)
The text was updated successfully, but these errors were encountered: