Skip to content

Commit

Permalink
Merge pull request #3178 from mirackle-spb/dlinknextgen-strip1
Browse files Browse the repository at this point in the history
Dlinknextgen strip1
  • Loading branch information
robertcheramy authored Jun 14, 2024
2 parents 7e56b35 + e7f3235 commit 1717511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- docker/podman: baseimage updated to phusion/baseimage:jammy-1.0.4
- fortios: Hide date in acme certifcate comments (@systeembeheerder)
- dlink: added support for 'enable admin' before getting configuration, if enable=true (@as8net)
- dlinknextgen: strip uptime and ntp update time from config

### Fixed
- fixed prompt for vyos/vyatta to allow logins with non-priviliged accounts. Fixes #3111 (@h-lopez)
Expand Down
3 changes: 3 additions & 0 deletions lib/oxidized/model/dlinknextgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class DlinkNextGen < Oxidized::Model
cmd 'show running-config' do |cfg|
cfg.gsub! /^(snmp-server community ["\w]+) \S+/, '\\1 <removed>'
cfg.gsub! /^(username [\w.@-]+ privilege \d{1,2} password \d{1,2}) \S+/, '\\1 <removed>'
cfg.gsub! /^(!System Up Time).*/, '\\1 <removed>'
cfg.gsub! /^(!Current SNTP Synchronized Time:).*/, '\\1 <removed>'
cfg.gsub! /^(\s+ppp (chap|pap) password \d) .+/, '\\1 <secret hidden>'
cfg
end

Expand Down

0 comments on commit 1717511

Please sign in to comment.