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

Checkpoint support #3

Open
gcotone opened this issue May 10, 2021 · 3 comments
Open

Checkpoint support #3

gcotone opened this issue May 10, 2021 · 3 comments

Comments

@gcotone
Copy link

gcotone commented May 10, 2021

Hi,
First of all, thanks for the module.

I was wondering if there're plans for supporting checkpoint management, rollback, etc.

@alvinc13
Copy link
Contributor

Hello gcotone,
Thank you for filing this request. We'll look into checkpoint management in a future update. Here are some functions that I can foresee being created:

'get_all_checkpoint'
'get_checkpoint'
'load_checkpoint'
'create_checkpoint'
'delete_checkpoint'

Can you suggest any other use cases that may be missing from this list, and further expand into your rollback request?

@gcotone
Copy link
Author

gcotone commented May 11, 2021

Hi @alvinc13 ,

Personally, I'd like to see a function to list the available checkpoints, i.e list_checkpoint(), and also integrate the proposed get_* functions with the existing get_(all_)config:

def get_config(config_name, **kwargs):

Same for loading and creating checkpoints where copy_config could be leveraged for that purpose, using a named checkpoint as src or dst name respectively. E.g.:

  • Create checkpoint -> copy_config(running_config, checkpoint_name_1234)
  • Load Checkpoint -> copy_config(checkpoint_name_1234, running_config)

@alagoutte
Copy link

Hello gcotone,
Thank you for filing this request. We'll look into checkpoint management in a future update. Here are some functions that I can foresee being created:

'get_all_checkpoint'
'get_checkpoint'
'load_checkpoint'
'create_checkpoint'
'delete_checkpoint'

Can you suggest any other use cases that may be missing from this list, and further expand into your rollback request?

interesting how to delete a checkpoint ;)

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

3 participants