Sha256: 5267e90ee8fb2244dbfbf450db7ae94b419eb0906726845bab8440315c0028e2
Contents?: true
Size: 622 Bytes
Versions: 3
Compression:
Stored size: 622 Bytes
Contents
class FirewareOS < Oxidized::Model prompt /^\[?\w*\]?\w*?(<\w*>)?(#|>)\s*$/ comment '-- ' cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end # Handle Logon Disclaimer added in XTM 11.9.3 expect /^I have read and accept the Logon Disclaimer message. \(yes or no\)\? $/ do |data, re| send "yes\n" data.sub re, '' end cmd 'show sysinfo' do |cfg| # avoid commits due to uptime cfg = cfg.each_line.reject { |line| line.match /(.*time.*)|(.*memory.*)|(.*cpu.*)/ } cfg = cfg.join comment cfg end cmd 'export config to console' cfg :ssh do pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.24.0 | lib/oxidized/model/firewareos.rb |
oxidized-0.23.0 | lib/oxidized/model/firewareos.rb |
oxidized-0.22.0 | lib/oxidized/model/firewareos.rb |