cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
675
Views
10
Helpful
2
Replies

version of textfsm/netmiko in yangsuite

tonzhou
Cisco Employee
Cisco Employee

Hi,

I am from spitfire-l2fib team, and we are trying to use yangsuite APIs in our nightly sanity script. One issue we hit is that, our sanity script requires textfsm 1.1.0 and above, while yangsuite requires textfsm under 0.4.1. This version conflict causes error in ysdevice initialization when it tries to load dependent modules, and the error said version check failed. Given that textfsm 0.4.1 is really old, we don't want to downgrade it.

I figured out that following modifications to yangsuite would allow everything (by everything I mean both our sanity script and yangsuite GUI) to go through with the latest textfsm:

  1. Upgrade netmiko to the latest.
  2. In <python path>/lib/python3.8/site-packages/yangsuite_devices-2.9.2.dist-info/METADATA, change the requirement for netmiko and textfsm – netmiko >= 2.4.1 and textfsm >= 1.1.0
  3. In <python path>/lib/python3.8/site-packages/yangsuite_yangtree-2.0.7.dist-info/METADATA, delete the upperbound of jinja2 version.

I guess that yangsuite's requirement that textfsm <= 0.4.1 is probably due to the incompatibility between netmiko and textfsm -- netmiko used to have script error with textfsm > 0.4.1, but this issue has been addressed in netmiko 2.4.1.

My questions:

1. Is the reason of textfsm version requirement just netmiko incompatibility, or are there any other reasons?

2. While manually changing version requirements work, it looks more like a hacking to me and I definitely don't want our team to do that. Therefore I would like to bring this to yangsuite community: Is it possible to allow a later textfsm/netmiko in the next yangsuite release?

1 Accepted Solution

Accepted Solutions

Thanks a lot Barry!

yangsuite team filed a ddts to loosen the version requirements. Hopefully we can get everything through in the next release.

View solution in original post

2 Replies 2

barweiss
Cisco Employee
Cisco Employee

Hello @tonzhou ,

I am not part of the Yangsuite development team, but I'm a user like yourself. I would recommend creating an issue for a feature request on the GitHub repo at https://github.com/CiscoDevNet/yangsuite, or since it sounds like you have the fix for it, you can also submit a Pull Request. Either way that would be the best way to document the feature request. Hope that helps

Thanks,
Barry

Thanks a lot Barry!

yangsuite team filed a ddts to loosen the version requirements. Hopefully we can get everything through in the next release.