ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.63k stars 1.31k forks source link

Add pagination support #3395

Open cknost opened 8 months ago

cknost commented 8 months ago

Add pagination support. Needed to use ruckus devices without enable mode.

ktbyers commented 8 months ago

Netmiko generally requires the ability to disable output paging.

In order to really do this, we would need a lot more things to be added (test cases for all of the relevant platforms), support wired in for all the relevant platforms, reasonable regression testing against large set of platforms. This is a lot of work and I am probably not willing to do it.

You could probably bypass the session_preparation by setting auto_connect=False and then either call netmiko_object._open() and catch the exception and then write your own handler for output pagination. Either that or superclass the ruckus driver and insert your own session_preparation.