-
Notifications
You must be signed in to change notification settings - Fork 339
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
Config.diff() issue with rsp
type
#1082
Comments
I have the issue with |
I am having the same issue on 18.4R3-S6.3
returns True for the above version when there are no changes, whereas on older versions it returns an Element with no text value. When there are changes an Element is returned with the text value populated as expected. Suggest it checks for an Element as you allude to above.
|
The pull request #1093 is not a fix but a workaround added to pass this scenario. This is a bug in junos for certain releases. As I understand, it should be working fine in 18.4R3-S7. One workaround can be done in playbook by modifying the task as This task if works with the requirements, then can be used. |
Closing this issue as it is junos bug for certain releases and should work fine for newer releases. |
As discussed in #1093 will keep this open and add a check for error-handling for such scenario. |
closing this based on #1116 |
I found a strange behaviour with Ansible, using PyEZ via Junos Module.
The module I use with ansible is this one:
On some devices - MX (Junos: 18.4R3-S5.4) I got an error on the modulee Config.diff
I check the value of
rsp
(viareturn f"rsp: {type(rsp)}: {rsp}"
on the file https://github.com/Juniper/py-junos-eznc/blob/master/lib/jnpr/junos/utils/config.py, just before the line 256)On
https://github.com/Juniper/py-junos-eznc/blob/master/lib/jnpr/junos/utils/config.py
I don't see any check about the type likeI'm curious about the type of
rsp
variable. I should be something like this:I found this issue only on one device and where there is the no change (no diff)
Alexandre Corso
The text was updated successfully, but these errors were encountered: