Sha256: 14de753aa360ef73f82a24304e81f873b20b06225fa745e907cdb7124fdb2ecc
Contents?: true
Size: 604 Bytes
Versions: 9
Compression:
Stored size: 604 Bytes
Contents
class FirewareOS < Oxidized::Model prompt /^\[?\w*\]?\w*?(<\w*>)?(#|>)\s*$/ comment '-- ' cmd :all do |cfg| cfg.cut_both 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
9 entries across 9 versions & 1 rubygems