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
Junos get_bgp_config() fails when a value is present in neighbor data for "cluster". This raises an exception in helpers.convert, as a None datatype is passed in for "to". If I add "cluster": str to _COMMON_FIELDS_DATATYPE_ in napalm/junos.py it does seem to work as expected.
(Paste the complete traceback of the exception between quotes below)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/napalm_test/env/lib/python3.9/site-packages/napalm/junos/junos.py", line 1304, in get_bgp_config
{key: napalm.base.helpers.convert(datatype, value, default)}
File "/napalm_test/env/lib/python3.9/site-packages/napalm/base/helpers.py", line 464, in convert
raise ValueError(
ValueError: Can't convert with callable None - no default is defined for this type.
The text was updated successfully, but these errors were encountered:
Junos get_bgp_config() fails when a value is present in neighbor data for "cluster". This raises an exception in helpers.convert, as a None datatype is passed in for "to". If I add
"cluster": str
to_COMMON_FIELDS_DATATYPE_
in napalm/junos.py it does seem to work as expected.Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
The text was updated successfully, but these errors were encountered: