Skip to content

Commit

Permalink
Fix when auto-saved is configured on xos switches (#2321)
Browse files Browse the repository at this point in the history
* Fix when auto-saved is configured on xos switches

Had issues that new backups where pushed every hour to git when "Next periodic save on" was updated with the next time to run.
Instead set the row to "empty".

  # primary.cfg       Created by ExtremeXOS version 30.7.1.1
  #                   542681 bytes saved on Fri May 28 09:09:10 2021
  #                   Auto-saved every 60 minutes, if configuration is changed.
-  #                   Next periodic save on Mon Jun 14 11:57:27 2021
+ #                   
  #

* Update CHANGELOG.md
  • Loading branch information
trappiz authored Dec 20, 2021
1 parent a02074a commit af6f072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- improved scrubbing of show chassis in ironware model (@michaelpsomiadis)
- fixed snmp secret handling in netgear model (@CirnoT)
- filter next periodic save schedule time in xos model output (@sargon)
- Fix when auto-saved is configured on xos switches (@trappiz)
- fixed ArubaOS-CX enviroment/system inconsistent values #2297 (@raunz)
- Update AirFiber prompt regex (@murrant)
- System time and running time are now stripped from tplink model output (@spike77453)


## [0.28.0 - 2020-05-18]

### Added
Expand Down
1 change: 1 addition & 0 deletions lib/oxidized/model/xos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class XOS < Oxidized::Model
end

cmd 'show switch' do |cfg|
cfg.gsub! /Next periodic save on.*/, ''
comment cfg.each_line.reject { |line| line.match(/Time:/) || line.match(/boot/i) || line.match(/Next periodic/) }.join
end

Expand Down

0 comments on commit af6f072

Please sign in to comment.