Sha256: 909a23b77aa42506632907247dec36597c85747dd60b9b238c8381a8e81fe655
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
class EdgeCOS < Oxidized::Model comment '! ' cmd :secret do |cfg| cfg.gsub!(/password \d+ (\S+).*/, '<secret removed>') cfg.gsub!(/community (\S+)/, 'community <hidden>') cfg end cmd :all do |cfg| cfg.each_line.to_a[2..-2].join end cmd 'show running-config' cmd 'show system' do |cfg| cfg.gsub! /^\s*System Up Time\s*:.*\n/i, '' comment cfg end cmd 'show version' do |cfg| comment cfg end cmd 'show watchdog' do |cfg| comment cfg end cfg :telnet do username /^Username:/ password /^Password:/ end cfg :telnet, :ssh do post_login 'terminal length 0' pre_logout 'exit' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.24.0 | lib/oxidized/model/edgecos.rb |
oxidized-0.23.0 | lib/oxidized/model/edgecos.rb |