brocade / ansible

56 stars 33 forks source link

Module for SAN configuration backup #125

Open vishnupr-1 opened 1 year ago

vishnupr-1 commented 1 year ago

Hello Team,

I would like to backup both virtual fabric as well as all configurations from SAN switch. Currently I am using cli commands to take the backup. Is it possible to get a module that uses may be REST API to take the configuration backup ?

jconsoli commented 1 year ago

I believe there is a module on github to do this using the Rest API and external SFTP or SCP server. I'm sure one of the other people on this thread can help with that. In FOS 9.1.1, two new branches were introduced to the API that allow you upload/download configuration data in-band so it eliminates the need for an external SFTP or SCP server. I have only just recently begun doing some testing with it so I don't have anything posted using it yet, nor do I think anyone else has.  operations/configuploadoperations/configdownload Regards, Jack @.**@. +1 203.500.4763 (m)

On Friday, May 5, 2023 at 03:22:56 AM PDT, vishnupr-1 ***@***.***> wrote:  

Hello Team,

I would like to backup both virtual fabric as well as all configurations from SAN switch. Currently I am using cli commands to take the backup. Is it possible to get a module that uses may be REST API to take the configuration backup ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

prasad-valmeti-broadcom commented 1 year ago

Currently, REST supports configupload operation to upload configuration in base64 encoded format: https:///rest/operations/configupload

Body:

virtual-fabric

Look into Yang for more details on the options. As per my understanding, it is not supported by the ansible yet. Will check with the PLM and let you know about the new module status.

s-kuchi commented 9 months ago

@prasad-valmeti-broadcom : Hi. Has there been any update on an ansible module for configupload and configdownload?

prasad-valmeti-broadcom commented 6 months ago

Generic operation support is part of Ansible 2.0.0, with it possible to have configupload or download. Will update you if there is any change in the plan for release 2.0.0.

huizsh commented 5 months ago

any update on this?