-
Notifications
You must be signed in to change notification settings - Fork 23
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
aoscx_backup_config always returns the running-config #111
Comments
Thank you @kikSaki for bringing this to our attention! I'll work on bringing this to our internal team and will update the issue when there's an update! |
@kikSaki can you also share which pyaoscx version you're using? |
I'm pretty sure I'm on the latest pyaoscx version: 2.6.0 |
I checked the pyaoscx version. |
I checked the pyaoscx code and possibly found where the problem is. In the file The function defaults to running config since it doesn't receive an input: So when doing backups locally it should be:
|
Hey,
in the aoscx_backup_config module there is an option to specify the config_name to backup, yet it always returns the running-config.
Collection:
arubanetworks.aoscx 4.4.0
Ansible Version:
ansible [core 2.16.7]
CX switch:
Aruba CX 6200F, Version ArubaOS-CX ML.10.10.1060
This is my playbook:
This was tested with the names of the startup-config and checkpoints, but it always returned the running-config
This is a part of the output from debug with -vvv:
I also tested the switch REST API with Postman using the API /fullconfigs/{name} and /configs/{name}.
Tested with
https://<ip-address>/rest/v10.10/fullconfigs/startup-config
which returns the correct configuration.https://<ip-address>/rest/v10.10/configs/startup-config
returns the correct configuration as well.Another nice thing would be to be able to save the CLI version of the config locally via API, or at least have the option to display it in the output for better readability without using SSH.
The text was updated successfully, but these errors were encountered: