ktbyers / netmiko

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

Support for VyOS operator mode: need 3 different prompt_terminator? #1591

Closed KaraRyougi closed 2 years ago

KaraRyougi commented 4 years ago

In operator mode, the prompt terminator is > instead of $ or #.

The current framework only supports a pri_prompt_terminator and an alt_prompt_terminator. Maybe alt_prompt_terminator can be a list?

ktbyers commented 4 years ago

Are all three of these prompts used: $ # >

In which contexts are each one of them used?

Thanks.

KaraRyougi commented 4 years ago

When an account with Operator priviledge logs into VyOS, the prompt is always >. (However according to VyOS this mode will soon be deprecated...)

Admin account uses $ in normal mode , and # in configuration mode. (which is currently well-supported)

ktbyers commented 4 years ago

Can you show me a code example including the exception for what breaks (especially on the original Netmiko connection).

How do you go from operator mode into the Admin account?

ktbyers commented 2 years ago

I am going to close this as no one is actively working on it...if anyone is still interested in this issue, let me know and we can re-open it or create a new issue.

ktbyers commented 2 years ago

Should be fixed here:

https://github.com/ktbyers/netmiko/pull/2673

ktbyers commented 2 years ago

Should be fixed here:

https://github.com/ktbyers/netmiko/pull/2673