Commit and Rollback¶
This section covers configuration commit and rollback operations in FloofOS.
Overview¶
FloofOS uses a commit-based configuration model. Changes made in configuration mode are staged until committed. The system maintains up to 50 commit points for rollback purposes.
Committing Configuration¶
Basic Commit¶
Syntax¶
Commit with Comment¶
Syntax¶
Parameters¶
| Parameter | Description |
|---|---|
comment | Descriptive label for the commit (no spaces, use dashes) |
Example¶
Comment Format
Comments cannot contain spaces. Use dashes (-) to separate words (e.g., add-upstream-peer).
Viewing Commit History¶
Syntax¶
Displays a numbered list of the last 50 commit timestamps and optional comments, with 0 being the current (most recent) commit.
History Fields¶
| Field | Description |
|---|---|
| Index | Commit point number (0 = current) |
| Timestamp | Date and time of commit |
(current) | Indicates active configuration |
| Comment | Optional commit comment in quotes |
Commit Retention
FloofOS retains up to 50 commit points. Older commits are automatically purged as new commits are made.
Rollback Operations¶
Understanding Rollback¶
Rollback restores configuration to a previous commit point. After rollback, you must commit and reboot for changes to take effect.
Rollback to Previous Commit¶
Syntax¶
or
Both commands are equivalent and rollback to the current configuration state.
Rollback to Specific Commit¶
Syntax¶
Example¶
Post-Rollback Procedure¶
After rollback:
- Review the loaded configuration:
show configuration - Commit the rollback:
commit - Reboot the system:
system reboot
Reboot Required
VPP configuration changes from rollback require a system reboot to take effect. Hot reload is not currently supported for rollback operations.
Alternative to Rollback¶
For minor changes, consider manually reverting specific settings using delete commands instead of full rollback:
| Original Command | Revert Command |
|---|---|
set hostname core-router | set hostname floofos |
set service ssh port 2234 | delete service ssh port |
set security firewall enable | set security firewall disable |
For BGP configuration changes, edit the configuration file directly using set protocol bgp.
This approach avoids the reboot requirement of full rollback.
Viewing Backup and Commit History¶
The show backups command displays both exported backups and commit history:
Displays exported backup files (name, timestamp, size) and the full rollback commit history.
Command Reference¶
| Command | Description |
|---|---|
commit | Commit staged configuration |
commit comment <text> | Commit with descriptive comment |
show system commit | Display commit history |
rollback | Rollback to previous state |
rollback <n> | Rollback to specific commit point |
show backups | Display backups and commit history |
system reboot | Reboot system (required after rollback) |
Best Practices¶
- Use commit comments - Document significant changes for easier identification
- Review before rollback - Check
show system committo identify correct rollback point - Test changes incrementally - Commit after each major change for granular rollback options
- Plan maintenance windows - Rollback requires reboot, plan accordingly
- Consider manual revert - For single changes, manual revert avoids reboot requirement