-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic commands not supported #161
Comments
Hi @ansiblejunky You can start with the docker to make sure it's not an external issue
and it works fine. Anything special in the environment you are working on ? |
Yeah, I didn't know we need to |
But yes, when using python3 it additionally struggles with the |
no, don't take the blame. fake switches has been implemented on a need-basis. So in our case we always enable before doing anything so it has not been an issue. However it is misleading.
I think I already saw this and it was a string vs byte comparison |
Yes. The modification in ssh_service.py was there to handle the password issue. |
@fbouliane Do you have some instructions on how to add support for more commands and/or devices? Was looking at doing that in the future. |
you basically connect to real the switch, learn how it works. Internal state is objects so should be doable if you're seasoned with python unittest and get to understand the architecture. however, i'm sure we'll be glad to receive pull request and guide you trough it. |
Trying to perform
show version
orshow config
orshow run
or evenexit
from main switch prompt but none of these appear to be supported. Any thoughts or ideas? I am using the following command:fake-switches --listen-host localhost --listen-port 3080 --model cisco_generic
The text was updated successfully, but these errors were encountered: