ktbyers / netmiko

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

Bugfix Mikrotik version > 6.48 = 'export' command incomplete #3405 #3467

Open Tonygratta opened 3 months ago

Tonygratta commented 3 months ago

This fix generates a regex string for search pattern using in send_command function for MikroTik devices. This regex expression searches not just the prompt string, but the prompt string exactly at the end of the output string, without any symbols after it. It prevents premature termination of the collecting data process.

Checked on hardware:

ktbyers commented 3 months ago

Does just switching to dumb terminal setting make this change unnecessary?

See: https://github.com/ktbyers/netmiko/issues/3405

Tonygratta commented 3 months ago

Tried that, but unfortunately it doesn't work.