Skip to content
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

Huawei save_config should be changed to handle the confirmation #1299

Closed
ktbyers opened this issue Jul 23, 2019 · 3 comments
Closed

Huawei save_config should be changed to handle the confirmation #1299

ktbyers opened this issue Jul 23, 2019 · 3 comments

Comments

@ktbyers
Copy link
Owner

ktbyers commented Jul 23, 2019

Send 'save'

DEBUG:netmiko:read_channel: save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]

Then you will get the abuve message and need to send a "Y" response.

From discussion on Slack, this is the general behavior of Huawei devices (this is for the 'huawei' device_type)

@eliphaslevy
Copy link

In our OLT MA5600T, there is the command "undo interactive" that suppresses these confirmations. Maybe works in these too.

Another (un)related note: the command "screen-length 0 temporary" does not work in this OLT, but I can get same effect with the command "scroll" and sending another empty command when it asks for the height, effectively setting it to zero.

@ktbyers
Copy link
Owner Author

ktbyers commented Sep 7, 2019

@eliphaslevy On your note, you would probably have to make a different Netmiko driver for that platform (i.e. for Huawei devices that don't support screen-length 0 temporary).

@ktbyers
Copy link
Owner Author

ktbyers commented Sep 7, 2019

The fix for this was merged in.

@ktbyers ktbyers closed this as completed Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants