Sha256: f23a007c7f6eb56567dc90aaf07a0c4a6cc4bda114c025d628ba2925ec77229a
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
class XOS < Oxidized::Model # Extreme Networks XOS prompt /^*?[\w .-]+# $/ comment '# ' cmd :all do |cfg| cfg.each_line.to_a[1..-2].join.rstrip end cmd 'show version' do |cfg| comment cfg end cmd 'show diagnostics' do |cfg| comment cfg end cmd 'show licenses' do |cfg| comment cfg end cmd 'show switch'do |cfg| comment cfg.each_line.reject { |line| line.match /Time:/ or line.match /boot/i }.join end cmd 'show configuration' cfg :telnet do username /^login:/ password /^passowrd:/ end cfg :telnet, :ssh do post_login 'disable clipaging' pre_logout 'exit' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.3.0 | lib/oxidized/model/xos.rb |
oxidized-0.2.4 | lib/oxidized/model/xos.rb |