Sha256: 727293ce2759fe831b8080ac2a323ad8fd3d8bc57591f8c8a3bc6f54cf945442
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
class FirewareOS < Oxidized::Model prompt /^([\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.select { |line| not 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.21.0 | lib/oxidized/model/firewareos.rb |
oxidized-0.20.0 | lib/oxidized/model/firewareos.rb |