You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This value is used by device.py here, to determine if the JunOS version is recent enough to support JSON formatting. Because crpd returns 0 for the version info the 'if' evaluates to false, so the JSON commands are skipped and we get this error:
/usr/local/lib/python3.9/dist-packages/junos_eznc-2.6.5-py3.9.egg/jnpr/junos/device.py:886: RuntimeWarning: Native JSON support is only from 14.2 onwards
warnings.warn(
I'm just messing with this in the lab, so it's easy enough for make a small change to devices.py to force it to work. It might be worth incorporating such a work-around at this point for crpd, or possibly ask the crpd dev team to fix the problem whereby the version_info returns with zeros.
The text was updated successfully, but these errors were encountered:
Hi,
This is less an issue with PyEz and more with cRPD, however I am only trial user so I do not think I can report issue to JTAC for cRPD.
Problem is fairly simple. cRPD (I am using trial version 19.4R1.10) returns the following for facts.get("version_info"):
This value is used by device.py here, to determine if the JunOS version is recent enough to support JSON formatting. Because crpd returns 0 for the version info the 'if' evaluates to false, so the JSON commands are skipped and we get this error:
I'm just messing with this in the lab, so it's easy enough for make a small change to devices.py to force it to work. It might be worth incorporating such a work-around at this point for crpd, or possibly ask the crpd dev team to fix the problem whereby the version_info returns with zeros.
The text was updated successfully, but these errors were encountered: