Add auto-checkpoint (confirmed commit) timer methods to Configuration - #114
Open
ed6869 wants to merge 1 commit into
Open
Add auto-checkpoint (confirmed commit) timer methods to Configuration#114ed6869 wants to merge 1 commit into
ed6869 wants to merge 1 commit into
Conversation
Add Configuration.set_auto_checkpoint(minutes) and confirm_auto_checkpoint() to arm and confirm the auto-checkpoint timer (the CLI 'checkpoint auto <N>' and 'checkpoint auto confirm' commands) via the configs/autocheckpoint REST resource. Signed-off-by: ed6869 <ed6869@mail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #115
Summary
Adds
Configuration.set_auto_checkpoint(minutes)andConfiguration.confirm_auto_checkpoint()to arm and confirm the auto-checkpoint (confirmed commit) timer via theconfigs/autocheckpointREST resource.Maps to the AOS-CX CLI:
checkpoint auto <minutes>->set_auto_checkpoint(minutes)checkpoint auto confirm->confirm_auto_checkpoint()If the running configuration is not confirmed before the timer expires, the switch automatically rolls it back (safe remote deployments / auto-rollback on lost connectivity).
Note:
POST configs/autocheckpointreturns HTTP 200 (not 201) on success, handled explicitly.Testing
Live-tested against a CX6300 (FL.10.17): arm + confirm succeed; the timer auto-rolls back an unconfirmed change.
Companion collection PR
aruba/aoscx-ansible-collection#224