Sha256: 2564b7fcfe2674fe03a23112b5c029c8ccf54880a2d9c5deeba4e67e73aca5ae

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 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 /^\r*password:/
  end

  cfg :telnet, :ssh do
    post_login 'disable clipaging'
    pre_logout 'exit'
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
oxidized-0.7.2 lib/oxidized/model/xos.rb
oxidized-0.7.1 lib/oxidized/model/xos.rb
oxidized-0.7.0 lib/oxidized/model/xos.rb
oxidized-0.6.0 lib/oxidized/model/xos.rb
oxidized-0.5.0 lib/oxidized/model/xos.rb
oxidized-0.4.1 lib/oxidized/model/xos.rb
oxidized-0.4.0 lib/oxidized/model/xos.rb