aoscx_checkpoint: add auto-checkpoint (confirmed commit) timer support - #224
Open
ed6869 wants to merge 2 commits into
Open
aoscx_checkpoint: add auto-checkpoint (confirmed commit) timer support#224ed6869 wants to merge 2 commits into
ed6869 wants to merge 2 commits into
Conversation
added 2 commits
July 1, 2026 12:06
Signed-off-by: ed6869 <ed6869@mail.com>
…ethods 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 #225
Summary
Extends the existing
aoscx_checkpointmodule with two options to manage the auto-checkpoint (confirmed commit) timer, mapping 1:1 to the AOS-CX CLI:auto: start+auto_timeout: <1-60>->checkpoint auto <minutes>auto: confirm->checkpoint auto confirmWhen
autois set,source_config/destination_configare ignored. If the configuration is not confirmed before the timer expires, the switch automatically rolls it back — ideal for safe remote deployments (auto-rollback on lost connectivity).Backed by the pyaoscx
ConfigurationSDK methods, no raw REST in the module.Example
Testing
Live-tested on a CX6300 (FL.10.17): start + confirm keep the change; without confirm the switch auto-rolls back. flake8, pep8, pylint and validate-modules all pass.
Depends on
SDK PR aruba/pyaoscx#114 (adds
Configuration.set_auto_checkpoint/confirm_auto_checkpoint).